tor-browser

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

116.html (1084B)


      1 <!DOCTYPE html>
      2 <html><head>
      3        <title>scheduler: adding script to head of frameset document</title>
      4        <script src="/resources/testharness.js"></script>
      5        <script src="/resources/testharnessreport.js"></script>
      6        <script src="testlib/testlib.js"></script>
      7        <script>
      8                // add a script that looks for document.body as first child of HEAD
      9                testlib.addScript('',{src:'scripts/find-body.js'},document.getElementsByTagName('head')[0], true );
     10                var div = document.createElement("div");
     11                div.id = "log";
     12                var t = async_test();
     13                function test() {
     14                        if(!(window.findBodyLoaded)) {
     15                            return setTimeout(t.step_func(test),200);
     16                        }
     17                        document.body.appendChild(div);
     18                        assert_array_equals(eventOrder, ['document.body: <FRAMESET>']);
     19                        t.done();
     20                }
     21                onload = t.step_func(test)
     22        </script>
     23 </head>
     24 <frameset>