tor-browser

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

test_document.all_unqualified.html (997B)


      1 <html>
      2 <head>
      3  <meta charset="UTF-8">
      4  <title>Test for Bug 823283</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 <body>
      9 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=823283">Mozilla Bug 823283</a>
     10 <p id="display"></p>
     11 <div id="content" style="display: none">
     12 <form id="f" onreset="window.valueOfAll = all; SimpleTest.executeSoon(finishTest); return false;">
     13 </form>
     14 </div>
     15 <pre id="test">
     16 <script>
     17 SimpleTest.waitForExplicitFinish();
     18 
     19 var all = 17;
     20 var valueOfAll = "initial value";
     21 
     22 function finishTest()
     23 {
     24  is(valueOfAll, document.all,
     25     "wrong value for |all| in event handler attribute; note that the wrong " +
     26     "value may be |document.forms.f.all| in browsers with an 'all' property " +
     27     "on elements");
     28  SimpleTest.finish();
     29 }
     30 
     31 window.addEventListener("load", function() { document.getElementById("f").reset(); });
     32 </script>
     33 </pre>
     34 </body>
     35 </html>