tor-browser

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

test_group_keyboard.html (1681B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various keyboard scrolling tests</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="apz_test_utils.js"></script>
      8  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10  <script type="application/javascript">
     11 
     12 var subtests = [
     13  {"file": "helper_key_scroll.html", prefs: [["apz.test.logging_enabled", true],
     14                                             ["test.events.async.enabled", true]]},
     15  {"file": "helper_bug1674935.html", prefs: []},
     16  {"file": "helper_bug1719330.html", prefs: [["general.smoothScroll", false]]},
     17  {"file": "helper_bug1695598.html"},
     18  {"file": "helper_scroll_snap_on_page_down_scroll.html"},
     19  {"file": "helper_scroll_snap_on_page_down_scroll.html",
     20    prefs: [["test.events.async.enabled", true]]},
     21  {"file": "helper_transform_end_on_keyboard_scroll.html",
     22    prefs: [["general.smoothScroll", false]] },
     23 ];
     24 subtests.push(...buildRelativeScrollSmoothnessVariants("key", ["scrollBy"]));
     25 subtests.push(...buildRelativeScrollSmoothnessVariants("native-key", ["scrollBy", "scrollTo", "scrollTop"]));
     26 
     27 if (isKeyApzEnabled()) {
     28  SimpleTest.waitForExplicitFinish();
     29  window.onload = function() {
     30    runSubtestsSeriallyInFreshWindows(subtests)
     31    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     32  };
     33 } else {
     34  SimpleTest.ok(true, "Keyboard APZ is disabled");
     35 }
     36  </script>
     37 </head>
     38 <body>
     39  <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1383365">Async key scrolling test</a>
     40 </body>
     41 </html>