at least one video track
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 31 May 2012 11:28:47 +0200
changeset 1 af06970a873e
parent 0 711a8a5cb607
child 2 c616cc15cfb5
at least one video track
submitted/W3C/video.html
--- a/submitted/W3C/video.html	Thu May 31 11:21:15 2012 +0200
+++ b/submitted/W3C/video.html	Thu May 31 11:28:47 2012 +0200
@@ -17,13 +17,13 @@
 <script src=featuredetection.js></script>
 <script src=prefix.js></script>
 <script>
-var t = async_test("Tests that a MediaStream with a single video track is returned");
+var t = async_test("Tests that a MediaStream with at least one video track is returned");
 if (window.navigator.getUserMedia) { 
   navigator.getUserMedia({video:true}, function (stream) {
   t.step(function () { 
      assert_true(stream instanceof LocalMediaStream, "getUserMedia success callback comes with a LocalMediaStream object");
      assert_equals(stream.audioTracks.length, 0, "the media stream has zero audio track");
-     assert_equals(stream.videoTracks.length, 1, "the media stream has one video track");
+     assert_true(stream.videoTracks.length >= 1, "the media stream has at least one video track");
   });
   t.done();
 });