commit-queue@webkit.org | 3de5b47 | 2011-05-18 21:26:03 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <style> |
| 4 | video {display:none; background-color: yellow; width: 320px; height: 240px;} |
| 5 | </style> |
commit-queue@webkit.org | 3de5b47 | 2011-05-18 21:26:03 +0000 | [diff] [blame] | 6 | </head> |
| 7 | <body onload="start()"> |
| 8 | |
| 9 | <video controls ></video> |
| 10 | |
| 11 | <p>Test HTMLMediaElement to be sure that the video is getting loaded even if the element |
| 12 | is hidden.</p> |
fischman@chromium.org | 47e2ab7 | 2012-04-06 00:56:04 +0000 | [diff] [blame] | 13 | <script src=media-file.js></script> |
| 14 | <script src=video-test.js></script> |
| 15 | <script> |
| 16 | function start() |
| 17 | { |
| 18 | video = document.getElementsByTagName('video')[0]; |
| 19 | waitForEvent('durationchange', function() { endTest(); }); |
| 20 | video.src = findMediaFile("video", "content/test"); |
| 21 | } |
| 22 | </script> |
commit-queue@webkit.org | 3de5b47 | 2011-05-18 21:26:03 +0000 | [diff] [blame] | 23 | </body> |
| 24 | </html> |