OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src="/media-resources/video-test.js"></script> | 7 <script src="/media-resources/video-test.js"></script> |
6 <script type="text/javascript"> | 8 <script type="text/javascript"> |
7 function onSourceOpen(e) | 9 function onSourceOpen(e) |
8 { | 10 { |
9 consoleWrite("Calling addSourceBuffer()"); | 11 consoleWrite("Calling addSourceBuffer()"); |
10 e.target.addSourceBuffer('video/webm;codecs="vp8"'); | 12 e.target.addSourceBuffer('video/webm;codecs="vp8"'); |
11 | 13 |
12 consoleWrite("Running garbage collector to cleanup the SourceBuf
fer reference returned by addSourceBuffer()"); | 14 consoleWrite("Running garbage collector to cleanup the SourceBuf
fer reference returned by addSourceBuffer()"); |
13 gc(); | 15 gc(); |
14 | 16 |
(...skipping 16 matching lines...) Expand all Loading... |
31 | 33 |
32 video.src = URL.createObjectURL(mediaSource); | 34 video.src = URL.createObjectURL(mediaSource); |
33 } | 35 } |
34 </script> | 36 </script> |
35 </head> | 37 </head> |
36 <body onload="main()"> | 38 <body onload="main()"> |
37 <video id="v"></video> | 39 <video id="v"></video> |
38 <p>Verify that we don't crash on close if the MediaSource.sourceBuffers ho
lds the last reference to its SourceBuffer objects.</p> | 40 <p>Verify that we don't crash on close if the MediaSource.sourceBuffers ho
lds the last reference to its SourceBuffer objects.</p> |
39 </body> | 41 </body> |
40 </html> | 42 </html> |
OLD | NEW |