blob: 44431ed7f4a9469123f365f84662e0edf8848b12 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
var promise;
var error;
function start()
{
findMediaElement();
run('mediaElement.play().then(failTest).catch(promiseRejected)');
run('mediaElement.pause()');
}
function promiseRejected(e)
{
error = e;
logResult(true, "Promise rejected.");
testExpected('error.name', 'AbortError');
endTest();
}
</script>
</head>
<body onload="start()">
<video></video>
</body>
</html>