tor-browser

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

test_group_overrides.html (1117B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various tests for event regions overrides</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  // Increase the content response timeout because these tests do preventDefault
     16  // and we want to make sure APZ actually waits for them.
     17  ["apz.content_response_timeout", 10000],
     18 ];
     19 
     20 var subtests = [
     21  {"file": "helper_override_root.html", "prefs": prefs},
     22  {"file": "helper_override_subdoc.html", "prefs": prefs},
     23 ];
     24 
     25 if (isApzEnabled()) {
     26  SimpleTest.waitForExplicitFinish();
     27  window.onload = function() {
     28    runSubtestsSeriallyInFreshWindows(subtests)
     29    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     30  };
     31 }
     32 
     33  </script>
     34 </head>
     35 <body>
     36 </body>
     37 </html>