tor-browser

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

test_group_touchevents-3.html (1860B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various touch tests that spawn in new windows (3)</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  // Simple test to exercise touch-action CSS property
     16  {"file": "helper_touch_action.html", "prefs": touch_action_prefs},
     17  // More complex touch-action tests, with overlapping regions and such
     18  {"file": "helper_touch_action_complex.html", "prefs": touch_action_prefs},
     19  // Tests that touch-action CSS properties are handled in APZ without waiting
     20  // on the main-thread, when possible
     21  {"file": "helper_touch_action_regions.html", "prefs": touch_action_prefs},
     22  // Tests that touch-action inside zero-opacity items are respected
     23  {"file": "helper_touch_action_zero_opacity_bug1500864.html", "prefs": touch_action_prefs},
     24 
     25  // Add new subtests to test_group_touch_events-N.html (for largest N),
     26  // not this file (exceptions may be made for quick-running tests that
     27  // need the touch-action prefs).
     28 ];
     29 
     30 if (isApzEnabled()) {
     31  ok(window.TouchEvent, "Check if TouchEvent is supported (it should be, the test harness forces it on everywhere)");
     32  if (getPlatform() == "android") {
     33    // This has a lot of subtests, and Android emulators are slow.
     34    SimpleTest.requestLongerTimeout(2);
     35  }
     36 
     37  SimpleTest.waitForExplicitFinish();
     38  window.onload = function() {
     39    runSubtestsSeriallyInFreshWindows(subtests)
     40    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     41  };
     42 }
     43 
     44  </script>
     45 </head>
     46 <body>
     47 </body>
     48 </html>