blob: 58a32789e6e09ade930bbce94a22cd8abda2b38c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
var promise;
function start()
{
findMediaElement();
run('mediaElement.src = findMediaFile("video", "content/test")');
run('mediaElement.play().then(promiseResolved).catch(failTest)');
}
function promiseResolved()
{
logResult(true, "Promise resolved.");
endTest();
}
</script>
</head>
<body onload="start()">
<video></video>
</body>
</html>