blob: 418cd3cd6b151e3cf1436560fe0f6bb0793174a9 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<html>
<head>
<meta charset=utf-8>
<meta name="viewport">
</head>
<body>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../utils.js"></script>
<script>
'use strict';
target_test({ width: "200px", height: "200px" }, (target, test) => {
document.body.style.width = "2000px";
document.body.style.height = "2000px";
target.style.touchAction = "manipulation";
requestAnimationFrame(() => {
const initialPageScaleFactor = window.internals.pageScaleFactor();
ui.doubleTapToZoom({ x: 10, y: 10 }).then(() => {
assert_not_equals(window.internals.pageScaleFactor(), initialPageScaleFactor, "The page was scaled.");
test.done();
});
})
}, "Testing that setting touch-action: manipulation on an element allows double tap to zoom.");
</script>
</body>
</html>