tor-browser

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

test_bug396568.html (1125B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=396568
      5 -->
      6 <head>
      7  <title>Test for Bug 396568</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10  <!--These script tags are part of the test, complete with indentation!-->
     11  <script language="javascript"
     12 
     13 
     14 
     15 
     16 
     17 
     18       
     19          type="text/javascript"></script>
     20  <script language="javascript"
     21          type="text/javascript"></script>
     22 </head>
     23 <body>
     24 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=396568">Mozilla Bug 396568</a>
     25 <p id="display"></p>
     26 <div id="content" style="display: none">
     27  
     28 </div>
     29 <pre id="test">
     30 <script class="testbody" type="text/javascript">
     31 
     32 /** Test for Bug 396568 */
     33 
     34 var reached = false;
     35 try {
     36   // eslint-disable-next-line no-undef
     37   noSuchIdentifier;
     38   reached = true;
     39 } catch (e) {
     40   is(e.lineNumber, 37, "Unexpected line number"); // this line number is dependent on the line number of noSuchIdentifier
     41 }
     42 is(reached, false, "Exception needed to be thrown");
     43 
     44 </script>
     45 </pre>
     46 </body>
     47 </html>