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

Side by Side Diff: LayoutTests/fast/mediastream/argument-types-expected.txt

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests the acceptable types for arguments to navigator.getUserMedia methods. 1 Tests the acceptable types for arguments to navigator.getUserMedia methods.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS navigator.webkitGetUserMedia() threw exception TypeError: Not enough argume nts. 6 PASS navigator.webkitGetUserMedia() threw exception TypeError: Failed to execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 0 present..
7 PASS navigator.webkitGetUserMedia(undefined) threw exception TypeError: Not enou gh arguments. 7 PASS navigator.webkitGetUserMedia(undefined) threw exception TypeError: Failed t o execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 present..
8 PASS navigator.webkitGetUserMedia(null) threw exception TypeError: Not enough ar guments. 8 PASS navigator.webkitGetUserMedia(null) threw exception TypeError: Failed to exe cute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 prese nt..
9 PASS navigator.webkitGetUserMedia({ }) threw exception TypeError: Not enough arg uments. 9 PASS navigator.webkitGetUserMedia({ }) threw exception TypeError: Failed to exec ute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 presen t..
10 PASS navigator.webkitGetUserMedia({video: true}) threw exception TypeError: Not enough arguments. 10 PASS navigator.webkitGetUserMedia({video: true}) threw exception TypeError: Fail ed to execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but onl y 1 present..
11 PASS navigator.webkitGetUserMedia(true) threw exception TypeError: Not enough ar guments. 11 PASS navigator.webkitGetUserMedia(true) threw exception TypeError: Failed to exe cute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 prese nt..
12 PASS navigator.webkitGetUserMedia(42) threw exception TypeError: Not enough argu ments. 12 PASS navigator.webkitGetUserMedia(42) threw exception TypeError: Failed to execu te 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 present ..
13 PASS navigator.webkitGetUserMedia(Infinity) threw exception TypeError: Not enoug h arguments. 13 PASS navigator.webkitGetUserMedia(Infinity) threw exception TypeError: Failed to execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 p resent..
14 PASS navigator.webkitGetUserMedia(-Infinity) threw exception TypeError: Not enou gh arguments. 14 PASS navigator.webkitGetUserMedia(-Infinity) threw exception TypeError: Failed t o execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but only 1 present..
15 PASS navigator.webkitGetUserMedia(emptyFunction) threw exception TypeError: Not enough arguments. 15 PASS navigator.webkitGetUserMedia(emptyFunction) threw exception TypeError: Fail ed to execute 'webkitGetUserMedia' on 'Navigator': 2 arguments required, but onl y 1 present..
16 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction) did not throw ex ception. 16 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction) did not throw ex ception.
17 PASS navigator.webkitGetUserMedia(undefined, emptyFunction) threw exception NotS upportedError: The implementation did not support the requested type of object o r operation.. 17 PASS navigator.webkitGetUserMedia(undefined, emptyFunction) threw exception NotS upportedError: The implementation did not support the requested type of object o r operation..
18 PASS navigator.webkitGetUserMedia(null, emptyFunction) threw exception NotSuppor tedError: The implementation did not support the requested type of object or ope ration.. 18 PASS navigator.webkitGetUserMedia(null, emptyFunction) threw exception NotSuppor tedError: The implementation did not support the requested type of object or ope ration..
19 PASS navigator.webkitGetUserMedia({ }, emptyFunction) threw exception NotSupport edError: The implementation did not support the requested type of object or oper ation.. 19 PASS navigator.webkitGetUserMedia({ }, emptyFunction) threw exception NotSupport edError: The implementation did not support the requested type of object or oper ation..
20 PASS navigator.webkitGetUserMedia(true, emptyFunction) threw exception TypeError : Not an object.. 20 PASS navigator.webkitGetUserMedia(true, emptyFunction) threw exception TypeError : Not an object..
21 PASS navigator.webkitGetUserMedia(42, emptyFunction) threw exception TypeError: Not an object.. 21 PASS navigator.webkitGetUserMedia(42, emptyFunction) threw exception TypeError: Not an object..
22 PASS navigator.webkitGetUserMedia(Infinity, emptyFunction) threw exception TypeE rror: Not an object.. 22 PASS navigator.webkitGetUserMedia(Infinity, emptyFunction) threw exception TypeE rror: Not an object..
23 PASS navigator.webkitGetUserMedia(-Infinity, emptyFunction) threw exception Type Error: Not an object.. 23 PASS navigator.webkitGetUserMedia(-Infinity, emptyFunction) threw exception Type Error: Not an object..
24 PASS navigator.webkitGetUserMedia(emptyFunction, emptyFunction) threw exception NotSupportedError: The implementation did not support the requested type of obje ct or operation.. 24 PASS navigator.webkitGetUserMedia(emptyFunction, emptyFunction) threw exception NotSupportedError: The implementation did not support the requested type of obje ct or operation..
25 PASS navigator.webkitGetUserMedia({video: true}, "foobar") threw exception TypeE rror: Type error. 25 PASS navigator.webkitGetUserMedia({video: true}, "foobar") threw exception TypeE rror: Type error.
(...skipping 13 matching lines...) Expand all
39 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, null) did not th row exception. 39 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, null) did not th row exception.
40 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, {}) threw except ion TypeError: Type error. 40 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, {}) threw except ion TypeError: Type error.
41 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, true) threw exce ption TypeError: Type error. 41 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, true) threw exce ption TypeError: Type error.
42 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, 42) threw except ion TypeError: Type error. 42 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, 42) threw except ion TypeError: Type error.
43 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, Infinity) threw exception TypeError: Type error. 43 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, Infinity) threw exception TypeError: Type error.
44 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, -Infinity) threw exception TypeError: Type error. 44 PASS navigator.webkitGetUserMedia({video: true}, emptyFunction, -Infinity) threw exception TypeError: Type error.
45 PASS successfullyParsed is true 45 PASS successfullyParsed is true
46 46
47 TEST COMPLETE 47 TEST COMPLETE
48 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698