tor-browser

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

worker-with-performance-observer.html (460B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 </head>
      7 <body>
      8 <script>
      9 async_test(function(t) {
     10  const worker = new Worker("resources/worker-with-performance-observer.js");
     11  worker.onmessage = function(event) {
     12    t.step(() => assert_equals(event.data, 'SUCCESS'));
     13    t.done();
     14  }
     15 }, 'Worker: Test Performance Observer inside a worker.');
     16 </script>
     17 </body>
     18 </html>