jer.noble@apple.com | bce4c12 | 2015-03-27 21:32:38 +0000 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>video-page-load-preload-none</title> |
| 5 | <script src=video-test.js></script> |
| 6 | <script src=media-file.js></script> |
| 7 | <script> |
| 8 | var video; |
| 9 | |
| 10 | </script> |
| 11 | </head> |
| 12 | <body> |
| 13 | <video id="video" preload="none" poster="content/counting.jpg"><source id="source"></video> |
| 14 | |
| 15 | <p>Test the document's load event is not delayed when a movie's preload attribute is "none".</p> |
| 16 | |
| 17 | <script> |
| 18 | consoleWrite("<br><b>inline script</b>"); |
| 19 | |
| 20 | video = document.getElementById('video'); |
| 21 | source = document.getElementById('source'); |
| 22 | source.src = findMediaFile("video", "content/test"); |
| 23 | |
| 24 | waitForEventAndFail('stalled'); |
| 25 | waitForEventOn(window, 'load', endTest); |
| 26 | </script> |
| 27 | |
| 28 | </body> |
| 29 | </html> |