| OLD | NEW |
| 1 <html lang="en"> | 1 <html lang="en"> |
| 2 <head> | 2 <head> |
| 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 4 <title>remote <video> with local <source></title> | 4 <title>remote <video> with local <source></title> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var video = null; | 8 var video = null; |
| 9 var console = null; | 9 var console = null; |
| 10 var testEnded = false; | 10 var testEnded = false; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 function error(evt) | 55 function error(evt) |
| 56 { | 56 { |
| 57 logEvent(evt) | 57 logEvent(evt) |
| 58 consoleWrite(""); | 58 consoleWrite(""); |
| 59 logResult("failed trying to load " + video.currentSrc, false); | 59 logResult("failed trying to load " + video.currentSrc, false); |
| 60 endTest(); | 60 endTest(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 var localMovie = "file:///tmp/LayoutTests/media/content/scaled-matri
x.mov"; | 63 var localMovie = "file:///tmp/LayoutTests/media/content/test.mp4"; |
| 64 var remoteUrl = "http://localhost:8000/resources/test"; | 64 var remoteUrl = "http://localhost:8000/resources/test"; |
| 65 | 65 |
| 66 function loadedmetadata(evt) | 66 function loadedmetadata(evt) |
| 67 { | 67 { |
| 68 var src = video.currentSrc; | 68 var src = video.currentSrc; |
| 69 var localFile = localMovie.substring(localMovie.lastIndexOf("/")
+1, localMovie.length) | 69 var localFile = localMovie.substring(localMovie.lastIndexOf("/")
+1, localMovie.length) |
| 70 var remoteFile = remoteUrl.substring(remoteUrl.lastIndexOf("/")+
1, remoteUrl.length) | 70 var remoteFile = remoteUrl.substring(remoteUrl.lastIndexOf("/")+
1, remoteUrl.length) |
| 71 | 71 |
| 72 logEvent(evt); | 72 logEvent(evt); |
| 73 if (src.indexOf(localFile) > 0) | 73 if (src.indexOf(localFile) > 0) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 <video id='vid' controls></video> | 121 <video id='vid' controls></video> |
| 122 | 122 |
| 123 <p>Test that a remote video element will not use a local <source>,
and will | 123 <p>Test that a remote video element will not use a local <source>,
and will |
| 124 use another remote <source></p> | 124 use another remote <source></p> |
| 125 | 125 |
| 126 <p>This test only behaves correctly in DRT</p> | 126 <p>This test only behaves correctly in DRT</p> |
| 127 | 127 |
| 128 </body> | 128 </body> |
| 129 </html> | 129 </html> |
| OLD | NEW |