Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1852)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-sourcebufferlist-crash.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698