Index: content/test/data/media/getusermedia.html |
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html |
index e248932fa757e9b3d06e40e7bfbe861d77664cfd..de46513786c1edb435506fc0defde2a5a9e126ea 100644 |
--- a/content/test/data/media/getusermedia.html |
+++ b/content/test/data/media/getusermedia.html |
@@ -30,13 +30,14 @@ |
failedCallback); |
} |
- // Requests getusermedia and expects it to fail. |
+ // Requests getusermedia and expects it to fail. The error name is returned |
+ // to the test. |
function getUserMediaAndExpectFailure(constraints) { |
console.log('Calling getUserMediaAndExpectFailure.'); |
navigator.webkitGetUserMedia( |
constraints, |
function(stream) { failTest('Unexpectedly succeeded getUserMedia.'); }, |
- function(error) { reportTestSuccess(); }); |
+ function(error) { sendValueToTest(error.name); }); |
} |
// Creates a MediaStream and renders it locally. When the video is detected to |