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 src</title> | 4 <title>remote <video> with local src</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 loadedmetadata(evt) | 55 function loadedmetadata(evt) |
56 { | 56 { |
57 logEvent(evt); | 57 logEvent(evt); |
58 consoleWrite(""); | 58 consoleWrite(""); |
59 consoleWrite("<span style='color:red'>FAIL: local movie loaded s
uccessfully</span>"); | 59 consoleWrite("<span style='color:red'>FAIL: local movie loaded s
uccessfully</span>"); |
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 if (window.testRunner) { | 64 if (window.testRunner) { |
65 localMovie = testRunner.pathToLocalResource(localMovie); | 65 localMovie = testRunner.pathToLocalResource(localMovie); |
66 testRunner.dumpAsText(); | 66 testRunner.dumpAsText(); |
67 testRunner.waitUntilDone(); | 67 testRunner.waitUntilDone(); |
68 } | 68 } |
69 setTimeout(hanged, 10000); | 69 setTimeout(hanged, 10000); |
70 | 70 |
71 function test() { | 71 function test() { |
72 | 72 |
73 video = document.getElementById("vid"); | 73 video = document.getElementById("vid"); |
(...skipping 10 matching lines...) Expand all Loading... |
84 | 84 |
85 <body onLoad="test()"> | 85 <body onLoad="test()"> |
86 | 86 |
87 <video id='vid' controls></video> | 87 <video id='vid' controls></video> |
88 | 88 |
89 <p>Test that a remote video element can not use a local 'src'</p> | 89 <p>Test that a remote video element can not use a local 'src'</p> |
90 <p>This test only works in DRT</p> | 90 <p>This test only works in DRT</p> |
91 | 91 |
92 </body> | 92 </body> |
93 </html> | 93 </html> |
OLD | NEW |