2009-06-26 00:25:17 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<!-- Test: Create video, load, wait for video frame to show, add poster
|
|
|
|
attribute, poster should show. -->
|
|
|
|
<script>
|
|
|
|
function runTest() {
|
|
|
|
var v = document.createElement('video');
|
|
|
|
|
|
|
|
var loadeddata =
|
|
|
|
function() {
|
|
|
|
setTimeout(function() {v.poster = "blue250x200.png";}, 100);
|
|
|
|
setTimeout(function() {document.documentElement.className = '';}, 150);
|
|
|
|
};
|
|
|
|
|
|
|
|
v.addEventListener('loadeddata',
|
|
|
|
loadeddata,
|
|
|
|
false);
|
|
|
|
v.id = 'v';
|
|
|
|
v.src = "black140x100.ogv";
|
2010-08-19 15:50:37 -07:00
|
|
|
v.preload = "auto";
|
2009-06-26 00:25:17 -07:00
|
|
|
document.body.appendChild(v);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<body style="background:white;" onload="runTest();">
|
|
|
|
</body>
|
|
|
|
</html>
|