tor-browser

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

test_document_importNode_document.html (834B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1177914
      5 -->
      6 <head>
      7  <title>Test for Bug 1177914</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1177914">Mozilla Bug 1177914</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 </div>
     16 <pre id="test">
     17 <script class="testbody" type="text/javascript">
     18 var thrownException = false;
     19 
     20 try {
     21  document.importNode(document);
     22 } catch(err) {
     23  thrownException = err;
     24 }
     25 
     26 ok(thrownException !== false, "An exception should've been thrown");
     27 is(thrownException.name, "NotSupportedError", "A NotSupportedError exception should've been thrown");
     28 </script>
     29 </pre>
     30 </body>
     31 </html>