tor-browser

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

buffer-full-then-decreased.html (1073B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8" />
      5 <title>This test validates that reducing the buffer size after entries were
      6  queued does not drop those entries, nor does it call the
      7  resourcetimingbufferfull event callback.</title>
      8 <link rel="author" title="Google" href="http://www.google.com/" />
      9 <link rel="help"
     10 href="https://www.w3.org/TR/resource-timing-2/#dom-performance-onresourcetimingbufferfull"/>
     11 <script src="/resources/testharness.js"></script>
     12 <script src="/resources/testharnessreport.js"></script>
     13 <script src="resources/resource-loaders.js"></script>
     14 <script src="resources/buffer-full-utilities.js"></script>
     15 </head>
     16 <body>
     17 <script>
     18 promise_test(async t => {
     19    addAssertUnreachedBufferFull(t);
     20    await fillUpTheBufferWithTwoResources();
     21    performance.setResourceTimingBufferSize(1);
     22    await waitForNextTask();
     23    checkEntries(2);
     24 }, "Test that if the buffer is reduced after entries were added to it, those" +
     25   " entries don't get cleared, nor is the resourcetimingbufferfull event" +
     26   " being called.");
     27 </script>
     28 </body>
     29 </html>