tor-browser

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

test-performance-attributes-exist-in-object.html (1287B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8" />
      5        <title>window.performance attribute exists in an object</title>
      6        <link rel="author" title="Google" href="http://www.google.com/" />
      7        <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
      8        <script src="/resources/testharness.js"></script>
      9        <script src="/resources/testharnessreport.js"></script>
     10        <script src="/common/performance-timeline-utils.js"></script>
     11        <script src="resources/webperftestharness.js"></script>
     12        <script>
     13          function onload_test() {
     14            var objWindow =
     15                document.getElementById("objectContext").contentDocument.defaultView;
     16            performanceNamespace = objWindow.performance;
     17            test_namespace('timing');
     18            test_namespace('navigation', true);
     19          }
     20        </script>
     21    </head>
     22    <body>
     23        <h1>Description</h1>
     24        <p>This test validates that the window.performance object exists in an
     25        object element (but does not validate that their values are correct).</p>
     26        <object id="objectContext" onload="onload_test();" data="resources/blank-page-green.html"></object>
     27        <div id="log"></div>
     28    </body>
     29 </html>