|
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"> |
|
12 |
|
13 /** Test for Bug 985827 **/ |
|
14 |
|
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"); |
|
21 |
|
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"); |
|
28 |
|
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"> |
|
35 |
|
36 </div> |
|
37 <pre id="test"> |
|
38 </pre> |
|
39 </body> |
|
40 </html> |