tor-browser

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

test_bug669012.html (1054B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=669012
      5 -->
      6 <head>
      7  <title>Test for Bug 669012</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=669012">Mozilla Bug 669012</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 <script>
     16 var run = 0;
     17 </script>
     18 <svg>
     19 <script>
     20 run++;
     21 ok(true, "Should run SVG script without attributes")
     22 </script>
     23 <script for=window event=onload>
     24 run++;
     25 ok(true, "Should run SVG script with for=window event=onload")
     26 </script>
     27 <script for=window event=foo>
     28 run++;
     29 ok(true, "Should run SVG script with for=window event=foo")
     30 </script>
     31 <script for=foo event=onload>
     32 run++;
     33 ok(true, "Should run SVG script with for=foo event=onload")
     34 </script>
     35 </svg>
     36 </div>
     37 <pre id="test">
     38 <script type="application/javascript">
     39 /** Test for Bug 669012 */
     40 is(run, 4, "Should have run all tests")
     41 </script>
     42 </pre>
     43 </body>
     44 </html>