tor-browser

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

test_group_hittest-3.html (2128B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various hit-testing tests that spawn in new windows - Part 3</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 displayport expiry so that we don't miss failures where the
     13  // displayport is set and then expires before we get around to doing the
     14  // hit-test inside the activated scrollframe.
     15  ["apz.displayport_expiry_ms", 0],
     16  // Always layerize the scrollbar track, so as to get consistent results
     17  // across platforms. Eventually we should probably get rid of this and make
     18  // the tests more robust in terms of testing all the different cross-platform
     19  // variations.
     20  ["layout.scrollbars.always-layerize-track", true],
     21  // We need this pref to allow the synthetic mouse events to propagate to APZ,
     22  // and to allow the MozMouseHittest event in particular to be dispatched to
     23  // APZ as a MouseInput so the hit result is recorded.
     24  ["test.events.async.enabled", true],
     25  // Turns on APZTestData logging which we use to obtain the hit test results.
     26  ["apz.test.logging_enabled", true],
     27  // Prefs to ensure we can produce a precise amount of scrolling via
     28  // synthesized touch-drag gestures.
     29  ["apz.touch_start_tolerance", "0.0"],
     30  ["apz.fling_min_velocity_threshold", "10000"],
     31 ];
     32 
     33 var subtests = [
     34  {file: "helper_hittest_iframe_perspective.html", prefs},
     35  {file: "helper_hittest_iframe_perspective-3.html", prefs},
     36  {file: "helper_hittest_iframe_perspective-4.html", prefs},
     37  {file: "helper_hittest_iframe_opacity_zero.html", prefs},
     38  {file: "helper_hittest_svgfilter_bug1934434.html", prefs},
     39  {file: "helper_hittest_bug1916028.html", prefs},
     40 ];
     41 
     42 if (isApzEnabled()) {
     43  SimpleTest.waitForExplicitFinish();
     44  window.onload = function() {
     45    runSubtestsSeriallyInFreshWindows(subtests)
     46    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     47  };
     48 }
     49 
     50  </script>
     51 </head>
     52 <body>
     53 </body>
     54 </html>