tor-browser

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

test_performance_timing_json.html (856B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1375829
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1375829</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 1375829 */
     14  var json = performance.timing.toJSON();
     15 
     16  // Ensure it doesn't have any attributes that performance.timing doesn't have
     17  for (let key of Object.keys(json)) {
     18    ok(key in performance.timing, key + " should be a property of performance.timing");
     19  }
     20 
     21  </script>
     22 </head>
     23 <body>
     24 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1375829">Mozilla Bug 1375829</a>
     25 <p id="display"></p>
     26 <div id="content" style="display: none">
     27 
     28 </div>
     29 <pre id="test">
     30 </pre>
     31 </body>
     32 </html>