OLD | NEW |
1 <body> | 1 <body> |
2 <script src=video-test.js></script> | 2 <script src=video-test.js></script> |
3 <script> | 3 <script> |
4 waitForEvent('loadstart', function () { | 4 waitForEvent('loadstart', function () { |
5 video = mediaElement = document.getElementsByTagName('video')[0]; | 5 video = mediaElement = document.getElementsByTagName('video')[0]; |
6 testExpected("relativeURL(video.currentSrc)", "content/test.mp4"); | 6 testExpected("relativeURL(video.currentSrc)", "content/test.mp4"); |
7 endTest(); | 7 endTest(); |
8 } ); | 8 } ); |
9 </script> | 9 </script> |
10 <video controls> | 10 <video controls> |
11 <source src=content/error.mpeg media="print"> | 11 <!-- the media attribute should be ignored --> |
12 <source src=content/error2.mpeg media="screen and (min-device-width: 80000px
)"> | 12 <source src=content/test.mp4 media="print"> |
13 <source src=content/test.mp4 media="screen and (min-device-width: 100px)"> | 13 <source src=content/error.mpeg> |
14 </video> | 14 </video> |
OLD | NEW |