<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src=../media-file.js></script> | |
<script src=../video-test.js></script> | |
<script> | |
function trackLoaded() | |
{ | |
findMediaElement(); | |
var expected = | |
{ | |
length : 2, | |
tests: | |
[ | |
{ | |
property : "id", | |
values : [1, 2], | |
}, | |
{ | |
property : "startTime", | |
values : [0.0, 31.0], | |
}, | |
{ | |
property : "endTime", | |
values : [30.5, 1200.5], | |
}, | |
{ | |
property : "text", | |
values : ["Bear is Coming!!!!!", "I said Bear is coming!!!!"], | |
}, | |
], | |
}; | |
testCues(0, expected); | |
endTest(); | |
} | |
setCaptionDisplayMode('Automatic'); | |
</script> | |
</head> | |
<body> | |
<p>Tests that the parser properly ignores a UTF-8 BOM character at the beginning of a file and all other cues are properly parsed.</p> | |
<video> | |
<track src="captions-webvtt/tc002-bom.vtt" onload="trackLoaded()" default> | |
</video> | |
</body> | |
</html> |