tor-browser

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

test_bug567938-4.html (1098B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=567938
      5 -->
      6 <head>
      7  <title>Test for Bug 567938</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=567938">Mozilla Bug 567938</a>
     14 <p id="display"></p>
     15 <div id="content" style="display: none">
     16  <input id='i' type='checkbox' onclick="return false;">
     17 </div>
     18 <pre id="test">
     19 <script type="application/javascript">
     20 
     21 /** Test for Bug 567938 */
     22 
     23 SimpleTest.waitForExplicitFinish();
     24 addLoadEvent(runTests);
     25 
     26 function runTests()
     27 {
     28  document.getElementById('i').checked = false;
     29 
     30  document.getElementById('i').addEventListener('click', function(aEvent) {
     31    SimpleTest.executeSoon(function() {
     32      ok(!aEvent.target.checked, "the input should not be checked");
     33      SimpleTest.finish();
     34    });
     35    }, {once: true});
     36 
     37  sendMouseEvent({type: 'click'}, 'i');
     38 }
     39 
     40 </script>
     41 </pre>
     42 </body>
     43 </html>