1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/test/test_navigator_resolve_identity.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=985827 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 985827</title> 1.12 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 + <script type="application/javascript"> 1.15 + 1.16 + /** Test for Bug 985827 **/ 1.17 + 1.18 + // Test WebIDL NavigatorProperty objects 1.19 + var x = navigator.mozContacts; 1.20 + is(typeof x, "object", "Should have a mozContacts object"); 1.21 + delete navigator.mozContacts; 1.22 + var y = navigator.mozContacts; 1.23 + is(x, y, "Should have gotten the same mozContacts object again"); 1.24 + 1.25 + // Test Javascript-navigator-property objects 1.26 + x = navigator.mozApps; 1.27 + is(typeof x, "object", "Should have a mozApps object"); 1.28 + delete navigator.mozApps; 1.29 + y = navigator.mozApps; 1.30 + is(x, y, "Should have gotten the same mozApps object again"); 1.31 + 1.32 + </script> 1.33 +</head> 1.34 +<body> 1.35 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=985827">Mozilla Bug 985827</a> 1.36 +<p id="display"></p> 1.37 +<div id="content" style="display: none"> 1.38 + 1.39 +</div> 1.40 +<pre id="test"> 1.41 +</pre> 1.42 +</body> 1.43 +</html>