OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
4 <script src="../../media-resources/video-test.js"></script> | 6 <script src="../../media-resources/video-test.js"></script> |
5 </head> | 7 </head> |
6 <body> | 8 <body> |
7 <p>Verifies that a MediaSource decode error followed by a gc() and page
reload does not trigger a crash.</p> | 9 <p>Verifies that a MediaSource decode error followed by a gc() and page
reload does not trigger a crash.</p> |
8 <video></video> | 10 <video></video> |
9 <script> | 11 <script> |
10 function onSourceOpen(e) | 12 function onSourceOpen(e) |
11 { | 13 { |
12 consoleWrite("onSourceOpen"); | 14 consoleWrite("onSourceOpen"); |
13 var ms = e.target; | 15 var ms = e.target; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 53 |
52 (function() | 54 (function() |
53 { | 55 { |
54 var ms = new MediaSource(); | 56 var ms = new MediaSource(); |
55 ms.addEventListener("sourceopen", onSourceOpen); | 57 ms.addEventListener("sourceopen", onSourceOpen); |
56 document.querySelector("video").src = URL.createObjectURL(ms); | 58 document.querySelector("video").src = URL.createObjectURL(ms); |
57 })(); | 59 })(); |
58 </script> | 60 </script> |
59 </body> | 61 </body> |
60 </html> | 62 </html> |
OLD | NEW |