Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Errors

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Various touch tests that spawn in new windows (5)</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<script type="application/javascript" src="apz_test_utils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
// Increase the tap timeouts so the double-tap is still detected in case of
// random delays during testing.
var doubletap_prefs = [
["ui.click_hold_context_menus.delay", 10000],
["apz.max_tap_time", 10000],
];
var subtests = [
// tests that scrolling doesn't cause extra SchedulePaint calls
{"file": "helper_bug1669625.html", "dp_suppression": false},
{"file": "helper_touch_drag_root_scrollbar.html", "prefs": [["apz.allow_zooming", true]]},
{"file": "helper_touch_drag_root_scrollbar.html", "prefs": [["apz.allow_zooming", false]]},
{"file": "helper_overscroll_in_apz_test_data.html", "prefs": [
["apz.overscroll.enabled", true],
["apz.overscroll.test_async_scroll_offset.enabled", true],
["apz.test.logging_enabled", true],
]},
{"file": "helper_bug1719855.html?prevent=contextmenu"},
{"file": "helper_bug1719855.html"},
{"file": "helper_bug1724759.html"},
{"file": "helper_bug1806400.html", "prefs": [
// This test uses `SimpleTest.promiseWaitForCondition` which waits for the
// given condition up to 3s, to avoid opening context menu during the time
// span use a longer `ui.click_hold_context_menus.delay` here.
["ui.click_hold_context_menus.delay", 10000],
["ui.touch_activation.duration_ms", 1000]
]},
{"file": "helper_bug1806400-2.html", "prefs": doubletap_prefs},
{"file": "helper_bug1806400-3.html", "prefs": [
["ui.touch_activation.duration_ms", 90000]
]},
{"file": "helper_bug1806400-4.html", "prefs": doubletap_prefs},
// Add new subtests here. If this starts timing out because it's taking too
// long, create a test_group_touchevents-6.html file. Refer to 1423011#c57
// for more details.
// You can still add tests to test_group_touchevents-4.html, it hasn't gotten
// too long yet, but this file was created because adding a specific test to
// test_group_touchevents-5.html would timeout (without making any progress)
// with fission x-origin tests. So you can add tests here or in
// test_group_touchevents-4.html until they start timing out.
];
if (isApzEnabled()) {
ok(window.TouchEvent, "Check if TouchEvent is supported (it should be, the test harness forces it on everywhere)");
if (getPlatform() == "android") {
// This has a lot of subtests, and Android emulators are slow.
SimpleTest.requestLongerTimeout(2);
}
SimpleTest.waitForExplicitFinish();
window.onload = function() {
runSubtestsSeriallyInFreshWindows(subtests)
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
};
}
</script>
</head>
<body>
</body>
</html>