| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>delay document 'load' event test</title> | 4 <title>delay document 'load' event test</title> |
| 5 <style> video { border: 3px solid red; } </style> | 5 <style> video { border: 3px solid red; } </style> |
| 6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 7 (Please avoid writing new tests using video-test.js) --> | 7 (Please avoid writing new tests using video-test.js) --> |
| 8 <script src=video-test.js></script> | 8 <script src=video-test.js></script> |
| 9 <script src=media-file.js></script> | 9 <script src=media-file.js></script> |
| 10 <script> | 10 <script> |
| 11 var video; | 11 var video; |
| 12 | 12 |
| 13 function testMovieWithNoSource(elem) | 13 function testMovieWithNoSource(elem) |
| 14 { | 14 { |
| 15 video = elem; // Need it in a global for testExpected() to see
it. | 15 video = elem; // Need it in a global for testExpected() to see
it. |
| 16 consoleWrite("<em>no 'src'.</em>"); | 16 consoleWrite("<em>no 'src'.</em>"); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 testMovieWithSource(video, false, "<br><em>with 'src' attribute.</em
>"); | 63 testMovieWithSource(video, false, "<br><em>with 'src' attribute.</em
>"); |
| 64 | 64 |
| 65 source = document.getElementById('source-1'); | 65 source = document.getElementById('source-1'); |
| 66 source.src = findMediaFile("video", "content/test"); | 66 source.src = findMediaFile("video", "content/test"); |
| 67 testMovieWithSource(document.getElementById('video-3'), false, "<br>
<em>with <source> element.</em>"); | 67 testMovieWithSource(document.getElementById('video-3'), false, "<br>
<em>with <source> element.</em>"); |
| 68 document.getElementById('video-3').load(); | 68 document.getElementById('video-3').load(); |
| 69 </script> | 69 </script> |
| 70 | 70 |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |