tor-browser

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

test_group_overscroll_handoff.html (1674B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Tests for overscroll handoff</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="apz_test_utils.js"></script>
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      9  <script type="application/javascript">
     10 
     11 var prefs = [
     12  // turn off smooth scrolling so that we don't have to wait for
     13  // APZ animations to finish before sampling the scroll offset
     14  ["general.smoothScroll", false],
     15  ["apz.test.mac.synth_wheel_input", true],
     16  // ensure that any mouse movement will trigger a new wheel transaction,
     17  // because in this test we move the mouse a bunch and want to recalculate
     18  // the target APZC after each such movement.
     19  ["mousewheel.transaction.ignoremovedelay", 0],
     20  ["mousewheel.transaction.timeout", 0],
     21 ];
     22 
     23 var subtests = [
     24  {"file": "helper_position_fixed_scroll_handoff-1.html", prefs},
     25  {"file": "helper_position_fixed_scroll_handoff-2.html", prefs},
     26  {"file": "helper_position_fixed_scroll_handoff-3.html", prefs},
     27  {"file": "helper_position_fixed_scroll_handoff-4.html", prefs},
     28  {"file": "helper_position_fixed_scroll_handoff-5.html", prefs},
     29  {"file": "helper_position_sticky_scroll_handoff.html", prefs},
     30  {"file": "helper_wheelevents_handoff_on_iframe.html", prefs},
     31  {"file": "helper_wheelevents_handoff_on_non_scrollable_iframe.html", prefs},
     32 ];
     33 
     34 if (isApzEnabled()) {
     35  SimpleTest.waitForExplicitFinish();
     36  window.onload = function() {
     37    runSubtestsSeriallyInFreshWindows(subtests)
     38    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     39  };
     40 }
     41 
     42  </script>
     43 </head>
     44 <body>
     45 </body>
     46 </html>