tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug1430164.html (1037B)


      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");
     20 
     21          t = Cu.evalInSandbox('Node === this.Node', s);
     22          ok(t, "Node should match this.Node in toplevel");
     23 
     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);
     28      }
     29  </script>
     30 </head>
     31 </html>