| <script src=media-file.js></script> |
| var video = document.getElementById('vid'); |
| if (video.style.display == "none") { |
| video.style.display = "inline-block"; |
| video.addEventListener("seeked", done); |
| video.currentTime = 0; // so the snapshot always has the same frame |
| video.style.display = "none"; |
| testRunner.waitUntilDone(); |
| setSrcById('vid', findMediaFile('video', 'content/test')); |
| var video = document.getElementById('vid'); |
| video.addEventListener("canplaythrough", test2); |
| This tests that toggling the display property won't make the controls disappear.<br> |
| <video id="vid" controls></video> |