Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
michael@0 | 3 | <?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.css"?> |
michael@0 | 4 | <!-- |
michael@0 | 5 | https://bugzilla.mozilla.org/show_bug.cgi?id=754141 |
michael@0 | 6 | --> |
michael@0 | 7 | <window title="Mozilla Bug 754141" |
michael@0 | 8 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 11 | |
michael@0 | 12 | <!-- test results are displayed in the html:body --> |
michael@0 | 13 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 14 | <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=754141" |
michael@0 | 15 | target="_blank">Mozilla Bug 754141</a> |
michael@0 | 16 | </body> |
michael@0 | 17 | |
michael@0 | 18 | <!-- test code goes here --> |
michael@0 | 19 | <script type="application/javascript"> |
michael@0 | 20 | <![CDATA[ |
michael@0 | 21 | |
michael@0 | 22 | /** Test for Bug 754141 **/ |
michael@0 | 23 | |
michael@0 | 24 | var appsService = Components.classes['@mozilla.org/AppsService;1'] |
michael@0 | 25 | .getService(Components.interfaces.nsIAppsService); |
michael@0 | 26 | SimpleTest.ok(appsService, "Should be able to get the Apps Service"); |
michael@0 | 27 | |
michael@0 | 28 | SimpleTest.ok('getAppByManifestURL' in appsService, |
michael@0 | 29 | "getAppByManifestURL() should be a method in nsIAppsService"); |
michael@0 | 30 | |
michael@0 | 31 | SimpleTest.is(appsService.getAppByManifestURL(''), null, |
michael@0 | 32 | "getAppByManifestURL() should return null for an empty string manifest url"); |
michael@0 | 33 | |
michael@0 | 34 | ]]> |
michael@0 | 35 | </script> |
michael@0 | 36 | </window> |