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

Side by Side Diff: LayoutTests/http/tests/media/media-source/mediasource-append-legacystream.html

Issue 552943002: MSE: Start letting SourceBuffer begin to do initialization segment received algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Addressed philipj@'s PS5 comments. Created 6 years, 3 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="/w3c/resources/testharness.js"></script> 4 <script src="/w3c/resources/testharness.js"></script>
5 <script src="/w3c/resources/testharnessreport.js"></script> 5 <script src="/w3c/resources/testharnessreport.js"></script>
6 <script src="mediasource-util.js"></script> 6 <script src="mediasource-util.js"></script>
7 <link rel='stylesheet' href='/w3c/resources/testharness.css'> 7 <link rel='stylesheet' href='/w3c/resources/testharness.css'>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 test.failOnEvent(xhr, 'error'); 178 test.failOnEvent(xhr, 'error');
179 xhr.send(); 179 xhr.send();
180 waitForLoadingState(test, xhr, function() 180 waitForLoadingState(test, xhr, function()
181 { 181 {
182 test.expectEvent(sourceBuffer, "updatestart", "Append started. "); 182 test.expectEvent(sourceBuffer, "updatestart", "Append started. ");
183 test.expectEvent(sourceBuffer, "abort", "Append aborted."); 183 test.expectEvent(sourceBuffer, "abort", "Append aborted.");
184 test.expectEvent(sourceBuffer, "updateend", "Append ended."); 184 test.expectEvent(sourceBuffer, "updateend", "Append ended.");
185 sourceBuffer.appendStream(xhr.response); 185 sourceBuffer.appendStream(xhr.response);
186 186
187 assert_true(sourceBuffer.updating, "updating attribute is true "); 187 assert_true(sourceBuffer.updating, "updating attribute is true ");
188 assert_equals(mediaSource.activeSourceBuffers.length, 0, "acti veSourceBuffers.length");
188 189
189 test.expectEvent(mediaSource.activeSourceBuffers, "removesourc ebuffer", "activeSourceBuffers");
190 test.expectEvent(mediaSource.sourceBuffers, "removesourcebuffe r", "sourceBuffers"); 190 test.expectEvent(mediaSource.sourceBuffers, "removesourcebuffe r", "sourceBuffers");
191 mediaSource.removeSourceBuffer(sourceBuffer); 191 mediaSource.removeSourceBuffer(sourceBuffer);
192 192
193 assert_false(sourceBuffer.updating, "updating attribute is fal se"); 193 assert_false(sourceBuffer.updating, "updating attribute is fal se");
194 194
195 var xhr2 = createMediaXHR(); 195 var xhr2 = createMediaXHR();
196 test.failOnEvent(xhr2, 'error'); 196 test.failOnEvent(xhr2, 'error');
197 xhr2.send(); 197 xhr2.send();
198 waitForLoadingState(test, xhr2, function() 198 waitForLoadingState(test, xhr2, function()
199 { 199 {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 { 376 {
377 assert_false(sourceBuffer.updating, "updating attribute is false"); 377 assert_false(sourceBuffer.updating, "updating attribute is false");
378 test.done(); 378 test.done();
379 }); 379 });
380 }); 380 });
381 }, "Test appending a Stream with an invalid maxSize."); 381 }, "Test appending a Stream with an invalid maxSize.");
382 382
383 </script> 383 </script>
384 </body> 384 </body>
385 </html> 385 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698