Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: LayoutTests/fast/mediastream/getusermedia.html

Issue 23444052: MediaStream API: Updating NavigatorUserMediaError (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/getusermedia-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/getusermedia.html
diff --git a/LayoutTests/fast/mediastream/getusermedia.html b/LayoutTests/fast/mediastream/getusermedia.html
index 649d9ebf8af322d0d39eeab9522a2cdbbb3a3ebf..fcb7ef9c389f162da28f444f612cc0eb86f94fc1 100644
--- a/LayoutTests/fast/mediastream/getusermedia.html
+++ b/LayoutTests/fast/mediastream/getusermedia.html
@@ -11,6 +11,7 @@
description("Tests webkitGetUserMedia.");
var stream;
+var errorArg;
function error() {
testFailed('Error callback called.');
@@ -30,8 +31,11 @@ function gotStream5(s) {
finishJSTest();
}
-function error1() {
+function error1(e) {
+ errorArg = e;
testPassed('Error callback called.');
+ shouldBeEqualToString('errorArg.name', 'ConstraintNotSatisfiedError');
+ shouldBeEqualToString('errorArg.constraintName', 'valid_but_unsupported_1');
shouldNotThrow("navigator.webkitGetUserMedia({audio:{mandatory:{'valid_and_supported_1':1}, optional:[{'valid_but_unsupported_1':0}]}, video:true}, gotStream5, error);");
}
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/getusermedia-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698