blob: 76e3f44efba38dbe315c9834b4eec6566081e05a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="media-file.js"></script>
<style>
video {
outline: 15px solid blue;
border: 15px solid green;
background: orange;
padding: 15px;
margin: 20px;
width: 300px;
}
</style>
</head>
<body>
<!-- This test passes if:
1) the final colored blocks in the series of colored blocks in the
video content box area are respectively: cyan, blue, green
2) the video seek point is near 00:00:03.19 -->
<video/>
</body>
<script>
window.onload = function() {
var video = document.querySelector('video');
video.addEventListener('seeked', function() {
if (window.testRunner)
setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100);
video.pause();
}, false);
setSrcByTagName('video', findMediaFile('video', 'content/test'));
seek(video, 3.8);
};
function seek(video, time) {
video.currentTime = time;
}
function done() {
setTimeout(function() { testRunner.notifyDone() }, 0);
}
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
</script>
</html>