{audio,video}Tracks now available through getter
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 30 May 2013 14:13:20 +0200
changeset 32 344cd96e7c98
parent 31 637d5799ba58
child 33 64a5c78e735b
{audio,video}Tracks now available through getter
submitted/W3C/video.html
--- a/submitted/W3C/video.html	Thu May 30 14:11:43 2013 +0200
+++ b/submitted/W3C/video.html	Thu May 30 14:13:20 2013 +0200
@@ -21,8 +21,8 @@
 t.step(function() {
   navigator.getUserMedia({video: true}, t.step_func(function (stream) {
     assert_true(stream instanceof MediaStream, "getUserMedia success callback comes with a MediaStream object");
-    assert_equals(stream.audioTracks.length, 0, "the media stream has zero audio track");
-    assert_equals(stream.videoTracks.length, 1, "the media stream has exactly one video track");
+    assert_equals(stream.getAudioTracks().length, 0, "the media stream has zero audio track");
+    assert_equals(stream.getVideoTracks().length, 1, "the media stream has exactly one video track");
     t.done();
   }), function(error) {});
 });