--- a/submitted/W3C/mediastream-constructor.html Tue Jun 04 18:45:44 2013 +0200
+++ b/submitted/W3C/mediastream-constructor.html Tue Jun 04 18:50:54 2013 +0200
@@ -36,6 +36,8 @@
var stream3 = new MediaStream([audioTrack2, videoTrack]);
assert_equals(stream3.getTrackById(audioTrack2.id), null, "an ended track doesn't get added via the MediaStream constructor");
assert_equals(stream3.getTrackById(videoTrack.id), videoTrack, "a non-ended track gets added via the MediaStream constructor even if the previous track was ended");
+ var stream5 = new MediaStream([audioTrack2]);
+ assert_true(stream5.ended, "a MediaStream created using the MediaStream() constructor whose arguments are lists of MediaStreamTrack objects that are all ended, the MediaStream object MUST be created with its ended attribute set to true");
t.done();
}, false);
audioTrack2.stop();