tor-browser

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

test_group_overscroll.html (936B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Tests for overscroll</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.overscroll.enabled", true],
     13  ["apz.overscroll.test_async_scroll_offset.enabled", true],
     14  ["apz.test.logging_enabled", true],
     15 ];
     16 
     17 var subtests = [
     18  {"file": "helper_overscroll_in_subscroller.html",
     19   "prefs": [ ...prefs,
     20              ["apz.overscroll.damping", 10.0] /* Make overscroll animations slower */ ] },
     21 ];
     22 
     23 if (isApzEnabled()) {
     24  SimpleTest.waitForExplicitFinish();
     25  window.onload = function() {
     26    runSubtestsSeriallyInFreshWindows(subtests)
     27    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     28  };
     29 }
     30 
     31  </script>
     32 </head>
     33 <body>
     34 </body>
     35 </html>