| 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);
|
|
|