mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
29 lines
703 B
HTML
29 lines
703 B
HTML
<!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";
|
|
v.autobuffer = true;
|
|
document.body.appendChild(v);
|
|
|
|
}
|
|
|
|
</script>
|
|
<body style="background:white;" onload="runTest();">
|
|
</body>
|
|
</html>
|