tor-browser

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

test-unique-performance-objects.html (1416B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8" />
      5        <title>Each window object has a unique performance object</title>
      6        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      7        <link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute" />
      8        <meta name="assert" content="Each browsing context must have a unique window.performance.timing attribute."/>
      9        <script src="/resources/testharness.js"></script>
     10        <script src="/resources/testharnessreport.js"></script>
     11        <script src="/common/performance-timeline-utils.js"></script>
     12        <script src="resources/webperftestharness.js"></script>
     13    </head>
     14    <body>
     15        <h1>Description</h1>
     16        <p>This test validates that each window has a unique window.performance object.</p>
     17        <iframe id="frameContext" src="resources/blank_page_green.html" style="display:none;";></iframe>
     18        <div id="log"></div>
     19        <script>
     20            test_namespace('timing');
     21 
     22            if (performanceNamespace !== undefined)
     23            {
     24                test_not_equals(performanceNamespace.timing,
     25                                document.getElementById("frameContext").contentWindow.performance.timing,
     26                                "Different window objects have unique performance objects");
     27            }
     28        </script>
     29    </body>
     30 </html>