tor-browser

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

loaf-visibility.html (822B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <meta name="timeout" content="long">
      4 <title>Long Animation Frame Timing: iframes</title>
      5 
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 <script src="/common/utils.js"></script>
     11 <script src="/page-visibility/resources/window_state_context.js"></script>
     12 <script src="resources/utils.js"></script>
     13 <body>
     14    <div id="log"></div>
     15 <script>
     16 
     17 promise_test(async t => {
     18    const {minimize, restore} = window_state_context(t);
     19    await minimize();
     20    expect_no_long_frame(busy_wait, t);
     21    await restore();
     22    expect_long_frame(busy_wait, t);
     23 }, 'Invisible windows do not report long animation frames');
     24 
     25 </script>
     26 </body>