dom/apps/tests/test_apps_service.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial