tor-browser

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

test_group_touchevents-4.html (2217B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various touch tests that spawn in new windows (4)</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
      8  <script type="application/javascript" src="apz_test_utils.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10  <script type="application/javascript">
     11 
     12 var touch_action_prefs = getPrefs("TOUCH_ACTION");
     13 
     14 var subtests = [
     15  // clicking on element with :active::after CSS property
     16  {"file": "helper_bug1473108.html"},
     17  // Resetting isFirstPaint shouldn't clobber the visual viewport
     18  {"file": "helper_bug1509575.html", "prefs": getPrefs("TOUCH_EVENTS:PAN")},
     19  // Exercise one of the main-thread touch-action determination codepaths.
     20  {"file": "helper_bug1506497_touch_action_fixed_on_fixed.html", "prefs": touch_action_prefs},
     21  {"file": "helper_bug1637113_main_thread_hit_test.html"},
     22  {"file": "helper_bug1638458_contextmenu.html"},
     23  {"file": "helper_bug1638441_fixed_pos_hit_test.html"},
     24  {"file": "helper_bug1637135_narrow_viewport.html", "prefs": [["dom.meta-viewport.enabled", true]]},
     25  {"file": "helper_bug1714934_mouseevent_buttons.html"},
     26  {"file": "helper_bug1889017_fullscreen.html", "prefs": [
     27    ["dom.meta-viewport.enabled", true],
     28    // For the test to exercise the intended bug, this needs to be less than
     29    // the browser width divided by the device scale.
     30    ["browser.viewport.desktopWidth", 600],
     31    ["full-screen-api.allow-trusted-requests-only", false]
     32  ]},
     33 
     34  // Add new subtests to test_group_touch_events-N.html (for largest N),
     35  // not this file.
     36 ];
     37 
     38 if (isApzEnabled()) {
     39  ok(window.TouchEvent, "Check if TouchEvent is supported (it should be, the test harness forces it on everywhere)");
     40  if (getPlatform() == "android") {
     41    // This has a lot of subtests, and Android emulators are slow.
     42    SimpleTest.requestLongerTimeout(2);
     43  }
     44 
     45  SimpleTest.waitForExplicitFinish();
     46  window.onload = function() {
     47    runSubtestsSeriallyInFreshWindows(subtests)
     48    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     49  };
     50 }
     51 
     52  </script>
     53 </head>
     54 <body>
     55 </body>
     56 </html>