tor-browser

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

test_bug590353-1.html (941B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=590353
      5 -->
      6 <head>
      7  <title>Test for Bug 590353</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=590353">Mozilla Bug 590353</a>
     13 <p id="display"></p>
     14 <pre id="test">
     15 <script type="application/javascript">
     16 
     17 /** Test for Bug 590353 */
     18 
     19 var testData = ['checkbox', 'radio'];
     20 
     21 for (var data of testData) {
     22  var e = document.createElement('input');
     23  e.type = data;
     24  e.checked = true;
     25  e.value = "foo";
     26 
     27  is(e.value, "foo", "foo should be the new " + data + "value");
     28  is(e.getAttribute('value'), "foo", "foo should be the new " + data +
     29                                     " value attribute value");
     30  ok(e.checked, data  + " should still be checked");
     31 }
     32 
     33 </script>
     34 </pre>
     35 </body>
     36 </html>