--- 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>