OLD | NEW |
1 <body> | 1 <body> |
| 2 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 3 (Please avoid writing new tests using video-test.js) --> |
2 <script src=video-test.js></script> | 4 <script src=video-test.js></script> |
3 <script> | 5 <script> |
4 waitForEvent('loadstart', function () { | 6 waitForEvent('loadstart', function () { |
5 video = mediaElement = document.getElementsByTagName('video')[0]; | 7 video = mediaElement = document.getElementsByTagName('video')[0]; |
6 testExpected("relativeURL(video.currentSrc)", "content/test.mp4"); | 8 testExpected("relativeURL(video.currentSrc)", "content/test.mp4"); |
7 endTest(); | 9 endTest(); |
8 } ); | 10 } ); |
9 </script> | 11 </script> |
10 <video controls> | 12 <video controls> |
11 <!-- the media attribute should be ignored --> | 13 <!-- the media attribute should be ignored --> |
12 <source src=content/test.mp4 media="print"> | 14 <source src=content/test.mp4 media="print"> |
13 <source src=content/error.mpeg> | 15 <source src=content/error.mpeg> |
14 </video> | 16 </video> |
OLD | NEW |