tor-browser

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

helper_content_response_timeout.html (848B)


      1 <!DOCTYPE html>
      2 <html>
      3 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      4 <script src="/tests/SimpleTest/paint_listener.js"></script>
      5 <script src="apz_test_utils.js"></script>
      6 <script src="apz_test_native_event_utils.js"></script>
      7 <style>
      8 html { overflow-y: scroll; }
      9 body { margin: 0; }
     10 div { height: 1000vh; }
     11 </style>
     12 <div id='target'></div>
     13 <script>
     14 window.addEventListener('wheel', () => {
     15 const timeAtStart = window.performance.now();
     16 while (window.performance.now() - timeAtStart < 200) {
     17  // Make a 200ms busy state.
     18 }
     19 }, { passive: false});
     20 // Silence SimpleTest warning about missing assertions by having it wait
     21 // indefinitely. We don't need to give it an explicit finish because the
     22 // entire window this test runs in will be closed after subtestDone is called.
     23 SimpleTest.waitForExplicitFinish();
     24 </script>
     25 </script>
     26 </html>