OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Cancel loading a video file and access its properties afterwards.</titl
e> | 3 <title>Cancel loading a video file and access its properties afterwards.</titl
e> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 Access a video element with resource loading canceled. | 6 Access a video element with resource loading canceled. |
7 If this test is successful it will terminate with a blank page. | 7 If this test is successful it will terminate with a blank page. |
8 This test should finish without crashing. | 8 This test should finish without crashing. |
9 | 9 |
10 <script src=../../media-resources/media-file.js></script> | 10 <script src=../../media-resources/media-file.js></script> |
11 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 11 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
12 (Please avoid writing new tests using video-test.js) --> | 12 (Please avoid writing new tests using video-test.js) --> |
13 <script src=../../media-resources/video-test.js></script> | 13 <script src=../../media-resources/video-test.js></script> |
14 <video controls id="video"></video> | 14 <video controls id="video"></video> |
15 | 15 |
16 <textarea id="child_content" style="display: none;"> | 16 <textarea id="child_content" style="display: none;"> |
17 <!-- Begin child content --> | 17 <!-- Begin child content --> |
18 <!-- The following section contains the content in the document of child windo
w. --> | 18 <!-- The following section contains the content in the document of child windo
w. --> |
19 <script> | 19 <script> |
20 var video = window.opener.video; | 20 var video = window.opener.video; |
21 window.setTimeout(function () { | 21 window.setTimeout(function () { |
(...skipping 26 matching lines...) Expand all Loading... |
48 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?throttle=40&
name=" + file; | 48 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?throttle=40&
name=" + file; |
49 | 49 |
50 // Change URL of the current page to a blank page. | 50 // Change URL of the current page to a blank page. |
51 function blank() | 51 function blank() |
52 { | 52 { |
53 location.href = "about:blank"; | 53 location.href = "about:blank"; |
54 } | 54 } |
55 </script> | 55 </script> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |