Skip to content

Commit

Permalink
Update the exception expected to be TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
wolenetz committed Sep 7, 2016
1 parent 3f3813d commit af85af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media-source/mediasource-sourcebuffer-mode-timestamps.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
mediaSource.addEventListener('sourceopen', t.step_func_done(function(e) {
var sourceBuffer = mediaSource.addSourceBuffer(mime);
assert_equals(sourceBuffer.updating, false, "SourceBuffer.updating is false");
assert_throws({name: 'InvalidStateError'},
assert_throws({name: 'TypeError'},
function() {
sourceBuffer.mode = "segments";
},
Expand All @@ -42,7 +42,7 @@
video.src = window.URL.createObjectURL(mediaSource);
}, mime + ' : ' +
'If generate timestamps flag equals true and new mode equals "segments", ' +
'then throw an INVALID_STATE_ERR exception and abort these steps.');
'then throw a TypeError exception and abort these steps.');
}
mimes.forEach(function(mime) {
mediaTest(mime);
Expand Down

0 comments on commit af85af6

Please sign in to comment.