blob: 44095f0db1cb61bfa2f4bce2c5695d2005dbb043 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
window.addEventListener('load', event => {
findMediaElement();
if (window.internals)
run('internals.setMediaElementRestrictions(mediaElement, "RequireUserGestureForAudioRateChange")');
run('mediaElement.src = findMediaFile("video", "content/test-25fps")');
run('promise = mediaElement.play()');
shouldReject(promise).then(e => {
error = e;
testExpected('error.name', 'NotAllowedError');
}).finally(endTest);
})
</script>
</head>
<body>
<video></video>
</body>
</html>