blob: 62131927e766ef4bcd832a25d77124ece08c164c [file] [log] [blame]
<!DOCTYPe html>
<title>Test that double tap does not trigger seeking in immersive mode</title>
<script src='../../resources/testharness.js'></script>
<script src='../../resources/testharnessreport.js'></script>
<script src='../media-controls.js'></script>
<body></body>
<script>
async_test(t => {
enableImmersiveMode(t);
const video = document.createElement('video');
video.controls = true;
document.body.appendChild(video);
video.src = '../content/test.ogv';
video.play().then(t.step_func(() => {
// Double tap in the top right hand corner
const coordinates = coordinatesOutsideElement(video);
doubleTouchAtCoordinates(
coordinates[0] + 10, coordinates[1] + 10, undefined,
t.step_func_done());
}));
video.addEventListener('seeking', t.unreached_func());
video.addEventListener('seeked', t.unreached_func());
});
</script>