added test on track.kind
authorDominique Hazael-Massieux <dom@w3.org>
Mon, 03 Jun 2013 23:31:21 +0200
changeset 63 a0bfdc3169c1
parent 62 801d1521d150
child 64 37c520c24572
added test on track.kind
submitted/W3C/audio.html
--- a/submitted/W3C/audio.html	Mon Jun 03 18:37:32 2013 +0200
+++ b/submitted/W3C/audio.html	Mon Jun 03 23:31:21 2013 +0200
@@ -22,6 +22,7 @@
   navigator.getUserMedia({audio:true}, t.step_func(function (stream) {
     assert_true(stream instanceof MediaStream, "getUserMedia success callback comes with a MediaStream object");
     assert_equals(stream.getAudioTracks().length, 1, "the media stream has exactly one audio track");
+    assert_equals(stream.getAudioTracks()[0].kind, "audio", "getAudioTracks() returns a sequence of tracks whose kind is 'audio'");
     assert_equals(stream.getVideoTracks().length, 0, "the media stream has zero video track");
     t.done();
   }));