4 <style type=
"text/css" media=
"screen">
12 background-color: white;
13 border:
1px solid black;
17 background-color: black;
28 background-color: green;
32 background-color: red;
35 <script type=
"text/javascript" charset=
"utf-8">
36 if (window.testRunner)
37 testRunner.waitUntilDone();
42 <p>You should see a green box under the video. If you see red, the test failed.
</p>
43 <div class=
"movie content">
44 <video height=
"100" width=
"100"></video>
45 <div class=
"indicator box"></div>
46 <div class=
"test box"></div>
49 <script type=
"text/javascript" charset=
"utf-8">
50 var video = document.getElementsByTagName('video')[
0];
51 video.src = '../resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
52 video.addEventListener('canplaythrough', function() {
53 if (window.testRunner)
54 testRunner.notifyDone();