--- a/submitted/W3C/getusermedia-trivial-constraint.html Mon Jun 03 18:13:23 2013 +0200
+++ b/submitted/W3C/getusermedia-trivial-constraint.html Mon Jun 03 18:18:14 2013 +0200
@@ -17,12 +17,15 @@
<script src=featuredetection.js></script>
<script src=prefix.js></script>
<script>
-var t = async_test("Tests that setting a trivial mandatory constraint in getUserMedia works");
+var t = async_test("Tests that setting a trivial mandatory constraint in getUserMedia works", {timeout:10000});
t.step(function() {
navigator.getUserMedia({video: {mandatory: {width: {min:0}}}}, t.step_func(function (stream) {
assert_equals(stream.getVideoTracks().length, 1, "the media stream has exactly one video track");
t.done();
- }), function(error) {});
+ }), t.step_func(function(error) {
+ assert_unreached("a Video stream of minimally zero width can always be created");
+ t.done();
+ }));
});
</script>
</body>