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