blob: 7d5a0e68e198c50b1f72a43ac821390f11cc4696 [file] [log] [blame]
<!DOCTYPE html>
<title>Test document user gesture autoplay policy across navigation after tapping</title>
<body>
<div id='target'>target</div>
</body>
<script>
testRunner.waitUntilDone();
internals.settings.setAutoplayPolicy('document-user-activation-required');
internals.runtimeFlags.autoplayIgnoresWebAudioEnabled = false;
var bounds = document.querySelector('#target').getBoundingClientRect();
var x = bounds.left + bounds.width / 2;
var y = bounds.top + bounds.height / 2;
// TODO(beccahughes): for some reasons, using pointerActanionSequence fails.
eventSender.gestureTap(x, y);
document.location.href = 'resources/test-autoplay.html';
</script>