blob: 5cb2faf1a77c4b3d79e0a8198d794fbd94e05bdd [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.src = findMediaFile("video", "content/test")');
}
function promiseRejected(e)
{
error = e;
logResult(true, "Promise rejected.");
testExpected('error.name', 'AbortError');
endTest();
}
</script>
</head>
<body onload="start()">
<video></video>
</body>
</html>