dom/base/test/test_navigator_resolve_identity.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=985827
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 985827</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11   <script type="application/javascript">
    13   /** Test for Bug 985827 **/
    15   // Test WebIDL NavigatorProperty objects
    16   var x = navigator.mozContacts;
    17   is(typeof x, "object", "Should have a mozContacts object");
    18   delete navigator.mozContacts;
    19   var y = navigator.mozContacts;
    20   is(x, y, "Should have gotten the same mozContacts object again");
    22   // Test Javascript-navigator-property objects
    23   x = navigator.mozApps;
    24   is(typeof x, "object", "Should have a mozApps object");
    25   delete navigator.mozApps;
    26   y = navigator.mozApps;
    27   is(x, y, "Should have gotten the same mozApps object again");
    29   </script>
    30 </head>
    31 <body>
    32 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=985827">Mozilla Bug 985827</a>
    33 <p id="display"></p>
    34 <div id="content" style="display: none">
    36 </div>
    37 <pre id="test">
    38 </pre>
    39 </body>
    40 </html>

mercurial