tor-browser

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

test_bug553982.html (835B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=553982
      5 -->
      6 <head>
      7  <title>Test for Bug 553982</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=553982">Mozilla Bug 553982</a>
     13 <pre id="test">
     14 <script type="application/javascript">
     15 
     16 SimpleTest.waitForExplicitFinish();
     17 var success = false;
     18 
     19 // This should fire
     20 function doError() {
     21  success = true;
     22 }
     23 
     24 // This should not fire
     25 function doLoad() {
     26  ok(false, "onload should not fire");
     27 }
     28 
     29 window.onload = function() {
     30  ok(success, "onerror should fire");
     31  SimpleTest.finish();
     32 }
     33 
     34 </script>
     35 </pre>
     36 <img src="data:text/html," onerror="doError()" onload="doLoad()" />
     37 </body>
     38 </html>