tor-browser

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

click_nested_crossorigin.sub.html (868B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>TestDriver click method with multiple windows and nested iframe</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 
      9 <iframe src="about:blank"></iframe>
     10 
     11 <script>
     12 setup({single_test: true});
     13 
     14 window.open("about:blank")
     15 var child = window.open("https://{{host}}:{{ports[https][0]}}/infrastructure/testdriver/click_outer_child.sub.html")
     16 window.open("about:blank")
     17 
     18 addEventListener("message", (msg) => {
     19    if (msg.data === "PASS") {
     20        done();
     21    } else if (msg.data === "FAIL") {
     22        assert_unreached("click failed");
     23    } else {
     24        assert_unreached("testdriver.js-internal messages should not be exposed to tests");
     25    }
     26 });
     27 </script>