[MSE] Implement Append Error algorithm.
[WebKit-https.git] / LayoutTests / media / media-source / media-source-multiple-initialization-segments.html
index 0c8e2d8adeb979c220bc08cfada306abbd4a0d26..ce6799920d1d8f53550dd5c6fff5d1b973e303b7 100644 (file)
@@ -48,7 +48,8 @@
 
     function secondUpdate() {
         consoleWrite('Test that a replacement initialization segment containing a track with a different codec but the same trackID fails.')
-        waitForEventOn(sourceBuffer, 'updateend', endTest, false, true);
+        waitForEventOn(sourceBuffer, 'error');
+        waitForEventOn(sourceBuffer, 'updateend');
         expected = true;
         initSegment = makeAInit(100, [
             makeATrack(2, '!moc', TRACK_KIND.VIDEO),