OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <video autoplay="true" id="v"></video> | 3 <video autoplay="true" id="v"></video> |
4 <script> | 4 <script> |
5 layoutTestController.waitUntilDone(); | 5 layoutTestController.waitUntilDone(); |
6 | 6 |
7 var v = document.getElementById('v'); | 7 var v = document.getElementById('v'); |
8 v.addEventListener('load', function() { | 8 v.addEventListener('canplaythrough', function() { |
9 window.setTimeout("layoutTestController.notifyDone();", 1000); | 9 window.setTimeout("layoutTestController.notifyDone();", 1000); |
10 }, false); | 10 }, false); |
11 v.src = 'bear_silent.ogv'; | 11 v.src = 'bear_silent.ogv'; |
12 v.load(); | 12 v.load(); |
13 </script> | 13 </script> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |