detecting error trigger
authorDominique Hazael-Massieux <dom@w3.org>
Mon, 03 Jun 2013 18:18:14 +0200
changeset 60 9d9159f89306
parent 59 0fbe5befb18a
child 61 b3dfdf7687e6
detecting error trigger
submitted/W3C/getusermedia-trivial-constraint.html
--- 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>