tor-browser

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

test_bug775972.xhtml (1082B)


      1 <?xml version="1.0"?>
      2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
      3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
      4 <!--
      5 https://bugzilla.mozilla.org/show_bug.cgi?id=775972
      6 -->
      7 <window title="Mozilla Bug 775972"
      8        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      9        onload="test()">
     10  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     11 
     12  <!-- test results are displayed in the html:body -->
     13  <body xmlns="http://www.w3.org/1999/xhtml">
     14  <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=775972"
     15     target="_blank">Mozilla Bug 775972</a>
     16  </body>
     17 
     18  <hbox id="container"><label value="test" id=""/></hbox>
     19  <!-- test code goes here -->
     20  <script type="application/javascript">
     21  <![CDATA[
     22 
     23  /** Test for Bug 775972 */
     24 
     25  function test() {
     26    var c = document.getElementById("container");
     27    var clone = c.cloneNode(true);
     28    document.documentElement.appendChild(clone);
     29    ok(true, "This shouldn't crash!");
     30  }
     31 
     32 
     33  ]]>
     34  </script>
     35 </window>