Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / chrome / test_bug1430164.html
blob609e662ad5455d6e039d31dd9de395a517fdbbe0
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1430164
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1430164</title>
9 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="chrome://global/skin"/>
11 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
12 <script type="application/javascript">
13 /** Test for Bug 1430164 **/
14 var s = new Cu.Sandbox(window, { sandboxPrototype: window } );
15 var t;
16 var desc;
17 try {
18 t = Cu.evalInSandbox('Node === Node', s);
19 ok(t, "Object identity should be sane");
21 t = Cu.evalInSandbox('Node === this.Node', s);
22 ok(t, "Node should match this.Node in toplevel");
24 t = Cu.evalInSandbox('Node === window.Node', s);
25 ok(t, "Node should match window.Node");
26 } catch (e) {
27 ok(false, "Should not get an exception: " + e);
29 </script>
30 </head>
31 </html>