tor-browser

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

test-readwrite.html (1197B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8" />
      5        <title>window.performance is read/write</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="The window.performance attribute provides a hosting area for performance related attributes. "/>
      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 the window.performance object is read/write.</p>
     17        <div id="log"></div>
     18        <script>
     19            test_namespace();
     20 
     21            window.performance = 'foo';
     22            test_equals(window.performance, 'foo', 'window.performance is read/write');
     23 
     24            var performance = 'bar';
     25            test_equals(performance, 'bar', 'var performance is read/write');
     26        </script>
     27    </body>
     28 </html>