tor-browser

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

test_windowroot.xhtml (714B)


      1 <?xml version="1.0"?>
      2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
      3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
      4                 type="text/css"?>
      5 <window title="Test window.windowRoot"
      6  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
      7  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
      8 
      9  <!-- test results are displayed in the html:body -->
     10  <body xmlns="http://www.w3.org/1999/xhtml">
     11  </body>
     12 
     13  <!-- test code goes here -->
     14  <script type="application/javascript"><![CDATA[
     15  var root = window.windowRoot;
     16  ok(WindowRoot.isInstance(root), "windowRoot should be a WindowRoot");
     17  ]]></script>
     18 </window>