| <style type="text/css" media="screen"> |
| <script type="text/javascript" charset="utf-8"> |
| if (window.layoutTestController) |
| layoutTestController.waitUntilDone(); |
| <p>You should see a green box under the video. If you see red, the test failed.</p> |
| <div class="movie content"> |
| <video height="100" width="100"></video> |
| <div class="indicator box"></div> |
| <div class="test box"></div> |
| <script type="text/javascript" charset="utf-8"> |
| var video = document.getElementsByTagName('video')[0]; |
| video.src = '../resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4'); |
| video.addEventListener('canplaythrough', function() { |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |