blob: 2ca48cd9b3d784788c1fb9f97bdd3a210d44e3e1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>var requirePixelDump = true;</script>
<script src=../media-file.js></script>
<script src=../video-test.js></script>
<script src=../media-controls.js></script>
<style>
.obscurer {
width: 500px;
height: 500px;
position: absolute;
background-color: white;
}
</style>
<script>
function seeked()
{
endTest();
}
function loaded()
{
consoleWrite("Test that line position is applied correctly.");
findMediaElement();
video.src = findMediaFile('video', '../content/test');
waitForEvent('seeked', seeked);
waitForEvent('canplaythrough', function() { video.currentTime = .5; });
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="loaded()">
<video style="position: absolute; left: 0px; top: 0px;" controls >
<track src="captions-webvtt/line-position.vtt" kind="captions" default>
</video>
<div class="obscurer" style="left: 0px; top: 100px;"></div>
</body>
</html>