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

Unified Diff: LayoutTests/fast/mediastream/script-tests/argument-types.js

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline 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
Index: LayoutTests/fast/mediastream/script-tests/argument-types.js
diff --git a/LayoutTests/fast/mediastream/script-tests/argument-types.js b/LayoutTests/fast/mediastream/script-tests/argument-types.js
index 8ecb888a1366af68566dcd2b992cf4825136ffa5..e0ba70c08f825a63401540bfd9385496b789e20f 100644
--- a/LayoutTests/fast/mediastream/script-tests/argument-types.js
+++ b/LayoutTests/fast/mediastream/script-tests/argument-types.js
@@ -5,7 +5,7 @@ function test(expression, expressionShouldThrow, expectedException) {
if (expectedException)
shouldThrow(expression, '"' + expectedException + '"');
else
- shouldThrow(expression, '"TypeError: Not enough arguments"');
+ shouldThrow(expression, '"TypeError: Failed to execute \'webkitGetUserMedia\' on \'Navigator\': 2 arguments required, but only 1 present."');
} else {
shouldNotThrow(expression);
}
@@ -18,7 +18,7 @@ var typeNotAnObjectError = new TypeError('Not an object.');
var emptyFunction = function() {};
// No arguments
-test('navigator.webkitGetUserMedia()', true);
+test('navigator.webkitGetUserMedia()', true, 'TypeError: Failed to execute \'webkitGetUserMedia\' on \'Navigator\': 2 arguments required, but only 0 present.');
// 1 Argument (getUserMedia requires at least 2 arguments).
test('navigator.webkitGetUserMedia(undefined)', true);

Powered by Google App Engine
This is Rietveld 408576698