*** empty log message ***
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 31 May 2012 21:27:40 +0200
changeset 23 212f891dbe91
parent 22 0e73e839ec2f
child 24 76158c0e308a
*** empty log message ***
submitted/W3C/localstream-stop.html
--- a/submitted/W3C/localstream-stop.html	Thu May 31 21:27:03 2012 +0200
+++ b/submitted/W3C/localstream-stop.html	Thu May 31 21:27:40 2012 +0200
@@ -22,7 +22,10 @@
   navigator.getUserMedia({video:true}, function (stream) {
     // onended is not supposed to be fired when stop() is invoked
     stream.onended = function () {
-      assert_unreached("onended is not fired when stop is invoked");
+      t.step(function () { 
+        assert_unreached("onended is not fired when stop is invoked");
+        t.done();
+      });
     };
 
     stream.stop();
@@ -31,8 +34,8 @@
   	assert_equals(stream.videoTracks[i].readyState, stream.videoTracks[i].ENDED, "Video Track #" + i + " ended");
       }
       assert_true(stream.ended);
+      t.done();
     });
-    t.done();
   });
 }
 </script>