test_group_pointerevents.html (1842B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1285070 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1285070</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <script type="application/javascript" src="apz_test_utils.js"></script> 11 <script type="application/javascript" src="apz_test_native_event_utils.js"></script> 12 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 13 <script type="application/javascript"> 14 15 let isWindows = navigator.platform.indexOf("Win") == 0; 16 let isMac = getPlatform() == "mac"; 17 var touch_action_prefs = getPrefs("TOUCH_ACTION"); 18 var subtests = [ 19 {"file": "helper_bug1414336.html", "prefs": [["apz.test.fails_with_native_injection", isWindows]]}, 20 {"file": "helper_bug1544966_zoom_on_touch_action_none.html", "prefs": touch_action_prefs}, 21 {"file": "helper_bug1648491_no_pointercancel_with_dtc.html", "prefs": touch_action_prefs}, 22 {"file": "helper_bug1663731_no_pointercancel_on_second_touchstart.html", 23 "prefs": touch_action_prefs}, 24 {"file": "helper_bug1682170_pointercancel_on_touchaction_pinchzoom.html", 25 "prefs": touch_action_prefs}, 26 {"file": "helper_bug1719855_pointercancel_on_touchmove_after_contextmenu_prevented.html"}, 27 {"file": "helper_bug1285070.html"}, 28 {"file": "helper_bug1299195.html", "prefs": [["dom.meta-viewport.enabled", isMac]]}, 29 ]; 30 31 if (getPlatform() != "android") { 32 // Bug 1858610: these subtests are flaky on Android. 33 subtests.push({"file": "helper_bug1502010_unconsumed_pan.html"}); 34 } 35 36 if (isApzEnabled()) { 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>