tor-browser

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

test_onerror.xhtml (906B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=500261
      4 -->
      5 <head>
      6  <title>Test onerror behaviour</title>
      7  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      9 </head>
     10 <body>
     11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=500261">Mozilla Bug 500261</a>
     12 <p id="display"></p>
     13 <script class="testbody" type="text/javascript">
     14 <![CDATA[
     15 
     16 SimpleTest.waitForExplicitFinish();
     17 
     18 function run() {
     19  ok(true, "onerror method called");
     20  SimpleTest.finish();
     21 }
     22 
     23 ]]>
     24 </script>
     25 <div id="content">
     26 
     27  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="1" id="svg">
     28    <image width="1" height="1" xlink:href="http://localhost/serverGone.gif" onerror="run()"/>
     29  </svg>
     30 
     31 </div>
     32 <pre id="test">
     33 </pre>
     34 </body>
     35 </html>