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 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
7 <script src="/media-resources/video-test.js"></script> | 7 <script src="/media-resources/video-test.js"></script> |
8 <script type="text/javascript"> | 8 <script type="text/javascript"> |
9 function onSourceOpen(e) | 9 function onSourceOpen(e) |
10 { | 10 { |
11 consoleWrite("Calling addSourceBuffer()"); | 11 consoleWrite("Calling addSourceBuffer()"); |
12 e.target.addSourceBuffer('video/webm;codecs="vp8"'); | 12 e.target.addSourceBuffer('video/webm;codecs="vp8"'); |
13 | 13 |
14 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()"); |
15 gc(); | 15 gc(); |
(...skipping 17 matching lines...) Expand all Loading... |
33 | 33 |
34 video.src = URL.createObjectURL(mediaSource); | 34 video.src = URL.createObjectURL(mediaSource); |
35 } | 35 } |
36 </script> | 36 </script> |
37 </head> | 37 </head> |
38 <body onload="main()"> | 38 <body onload="main()"> |
39 <video id="v"></video> | 39 <video id="v"></video> |
40 <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> |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |