Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Errors
- This test failed 1 times in the preceding 30 days. quicksearch this test
- Manifest: gfx/layers/apz/test/mochitest/mochitest.toml
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>Various zoomToFocusedInput tests</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="apz_test_utils.js"></script>
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
let prefs = [
["apz.zoom_animation_duration_ms", 1],
["dom.meta-viewport.enabled", true],
["formhelper.autozoom", true]
];
var subtests = [
{"file": "helper_zoomToFocusedInput_scroll.html", prefs},
{"file": "helper_zoomToFocusedInput_multiline.html", prefs},
{"file": "helper_zoomToFocusedInput_iframe.html", prefs},
{"file": "helper_zoomToFocusedInput_iframe.html?cross-origin", prefs},
{"file": "helper_zoomToFocusedInput_iframe-2.html",
"prefs": [...prefs,
["layout.scroll.disable-pixel-alignment", true]]
},
{"file": "helper_zoomToFocusedInput_fixed_bug1673511.html", prefs},
{"file": "helper_zoomToFocusedInput_nozoom_bug1738696.html", prefs},
{"file": "helper_zoomToFocusedInput_nested_position_fixed.html", prefs},
{"file": "helper_zoomToFocusedInput_zoom_in_position_fixed.html", prefs},
];
// These tests rely on mobile viewport sizing, so only run them on
// mobile for now. In the future we can consider running them on
// on desktop, but only in configurations with overlay scrollbars
let platform = getPlatform();
if (platform == "android") {
subtests.push(
{"file": "helper_zoomToFocusedInput_nozoom.html", prefs}
);
subtests.push(
{"file": "helper_zoomToFocusedInput_zoom.html", prefs}
);
subtests.push(
{"file": "helper_zoomToFocusedInput_touch-action.html", prefs}
);
subtests.push(
{"file": "helper_zoomToFocusedInput_dynamic_toolbar_bug1828235.html", prefs}
);
}
if (isApzEnabled()) {
SimpleTest.waitForExplicitFinish();
window.onload = function() {
runSubtestsSeriallyInFreshWindows(subtests)
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
};
}
</script>
</head>
<body>
</body>
</html>