tor-browser

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

button-activate.html (524B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title></title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <iframe src="button-activate-frame.html" onload="runTest()"></iframe>
      7 <script>
      8 var t = async_test("button activation behaviour submits form");
      9 function runTest() {
     10  var iframe = document.querySelector('iframe');
     11  iframe.onload = t.step_func(function() {
     12    t.done();
     13  });
     14  var doc = iframe.contentDocument;
     15  doc.querySelector('button').click();
     16 }
     17 </script>