tor-browser

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

dom-interactive-media-document.html (1036B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8" />
      5        <title>Test domInteractive on media document.</title>
      6        <link rel="author" title="Google" href="http://www.google.com/" />
      7        <link rel="help" href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#read-media"/>
      8        <script src="/resources/testharness.js"></script>
      9        <script src="/resources/testharnessreport.js"></script>
     10    </head>
     11    <script>
     12        const t = async_test("Test domInteractive on media document");
     13        function frameLoaded() {
     14            const timing = document.querySelector("iframe").contentWindow.performance.timing;
     15            assert_greater_than(timing.domInteractive, 0,
     16                "Expect domInteractive to be positive value.");
     17            t.done();
     18        }
     19    </script>
     20    <body>
     21        <h1>Description</h1>
     22        <p>This tests that a media document has positive-value domInteractive.</p>
     23        <iframe src="../media/A4.mp4" onload="frameLoaded()"></iframe>
     24    </body>
     25 </html>