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 |
| 12 (Please avoid writing new tests using video-test.js) --> |
11 <script src=../../media-resources/video-test.js></script> | 13 <script src=../../media-resources/video-test.js></script> |
12 <video controls id="video"></video> | 14 <video controls id="video"></video> |
13 | 15 |
14 <textarea id="child_content" style="display: none;"> | 16 <textarea id="child_content" style="display: none;"> |
15 <!-- Begin child content --> | 17 <!-- Begin child content --> |
16 <!-- 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. --> |
17 <script> | 19 <script> |
18 var video = window.opener.video; | 20 var video = window.opener.video; |
19 window.setTimeout(function () { | 21 window.setTimeout(function () { |
20 var d = video.duration; | 22 var d = video.duration; |
(...skipping 25 matching lines...) Expand all Loading... |
46 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; |
47 | 49 |
48 // Change URL of the current page to a blank page. | 50 // Change URL of the current page to a blank page. |
49 function blank() | 51 function blank() |
50 { | 52 { |
51 location.href = "about:blank"; | 53 location.href = "about:blank"; |
52 } | 54 } |
53 </script> | 55 </script> |
54 </body> | 56 </body> |
55 </html> | 57 </html> |
OLD | NEW |