tor-browser

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

worklet-rt-entries.https.html (652B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8" />
      5 <title>Resource Timing Entry Sequence of Events for Worklets</title>
      6 <link rel="help" href="https://w3c.github.io/resource-timing/"/>
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 </head>
     10 <body>
     11 <script>
     12    promise_test(async() => {
     13        const url = new URL("/worklets/resources/empty-worklet-script.js", location.href).toString();
     14        await CSS.paintWorklet.addModule(url);
     15        assert_equals(performance.getEntriesByName(url).length, 1);
     16    }, "Worklets should generate Resource Timing Entries");
     17 </script>
     18 </body>
     19 </html>