tor-browser

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

test_group_scrollend.html (2623B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various scrollend tests that spawn in new windows</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  ["apz.test.mac.synth_wheel_input", true],
     13 ];
     14 
     15 var smoothScrollDisabled = [
     16  ...prefs,
     17  ["general.smoothScroll", false],
     18 ];
     19 
     20 var smoothMsdScrollEnabled = [
     21  ...prefs,
     22  ["general.smoothScroll", true],
     23  ["general.smoothScroll.msdPhysics.enabled", true],
     24 ];
     25 
     26 var smoothScrollEnabled = [
     27  ...prefs,
     28  ["general.smoothScroll", true],
     29  ["general.smoothScroll.msdPhysics.enabled", false],
     30 ];
     31 
     32 var subtests = [
     33  {"file": "helper_basic_scrollend.html?chrome-only=true", "prefs": prefs},
     34  {"file": "helper_basic_scrollend.html?chrome-only=false", "prefs": prefs},
     35  {"file": "helper_scrollend_bubbles.html?scroll-target=document", "prefs": prefs},
     36  {"file": "helper_scrollend_bubbles.html?scroll-target=element", "prefs": prefs},
     37  {"file": "helper_main_thread_smooth_scroll_scrollend.html", "prefs": prefs},
     38  {"file": "helper_scrollend_bubbles.html?scroll-target=document",
     39        "prefs": smoothScrollDisabled},
     40  {"file": "helper_scrollend_bubbles.html?scroll-target=element",
     41        "prefs": smoothScrollDisabled},
     42  {"file": "helper_main_thread_smooth_scroll_scrollend.html",
     43        "prefs": smoothScrollDisabled},
     44  {"file": "helper_keyboard_scrollend.html?direction=up",
     45        "prefs": smoothMsdScrollEnabled},
     46  {"file": "helper_keyboard_scrollend.html?direction=up",
     47        "prefs": smoothScrollEnabled},
     48  {"file": "helper_keyboard_scrollend.html?direction=up&flush-before-key",
     49        "prefs": smoothScrollEnabled},
     50  {"file": "helper_keyboard_scrollend.html?direction=up",
     51        "prefs": smoothScrollDisabled},
     52  {"file": "helper_keyboard_scrollend.html?direction=up&flush-before-key",
     53        "prefs": smoothScrollDisabled},
     54  {"file": "helper_keyboard_scrollend.html?direction=down&flush-before-key",
     55        "prefs": smoothScrollEnabled},
     56  {"file": "helper_keyboard_scrollend.html?direction=down&flush-before-key",
     57        "prefs": smoothScrollDisabled},
     58  {"file": "helper_keyboard_scrollend.html?direction=down",
     59        "prefs": smoothScrollDisabled},
     60 ];
     61 
     62 if (isApzEnabled()) {
     63  SimpleTest.waitForExplicitFinish();
     64  window.onload = function() {
     65    runSubtestsSeriallyInFreshWindows(subtests)
     66    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     67  };
     68 }
     69 
     70  </script>
     71 </head>
     72 <body>
     73 </body>
     74 </html>