state of readyState now a string
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 30 May 2013 15:25:47 +0200
changeset 35 1b6234f7c7c9
parent 34 cd4a06432643
child 36 63793204fc8f
state of readyState now a string
submitted/W3C/mediastreamtrack-init.html
--- a/submitted/W3C/mediastreamtrack-init.html	Thu May 30 15:19:52 2013 +0200
+++ b/submitted/W3C/mediastreamtrack-init.html	Thu May 30 15:25:47 2013 +0200
@@ -24,9 +24,9 @@
     assert_equals(videoTracks.length, 1, "There is exactly one video track in the media stream");
     var track = videoTracks[0];
     assert_true(track instanceof MediaStreamTrack, "The track object is an instance of MediaStreamTrack");
-    assert_equals(track.readyState, track.LIVE, "The track object is in live state");
+    assert_equals(track.readyState, "live", "The track object is in live state");
       assert_equals(track.kind, "video", "The track object is of video kind");
-      assert_true(track.enabled, "The track object is enabed"); // Not clear that this is required by the spec    
+      assert_true(track.enabled, "The track object is enabed"); // Not clear that this is required by the spec, see https://www.w3.org/Bugs/Public/show_bug.cgi?id=22212
     t.done();
   }));
 });