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

Side by Side Diff: LayoutTests/fast/dom/call-a-constructor-as-a-function-expected.txt

Issue 23440058: Improve generated TypeError exception messages in bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/constructors-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This tests if TypeError is thrown or not when we call a constructor as a normal function. 1 This tests if TypeError is thrown or not when we call a constructor as a normal function.
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 ArrayBuffer() threw exception TypeError: Constructor ArrayBuffer requires ' new'. 6 PASS ArrayBuffer() threw exception TypeError: Constructor ArrayBuffer requires ' new'.
7 SKIP AudioContext is not implemented. 7 SKIP AudioContext is not implemented.
8 PASS FormData() threw exception TypeError: DOM object constructor cannot be call ed as a function.. 8 PASS FormData() threw exception TypeError: Failed to construct 'DOMFormData': Pl ease use the 'new' operator, this DOM object constructor cannot be called as a f unction..
9 PASS DataView() threw exception TypeError: Constructor DataView requires 'new'. 9 PASS DataView() threw exception TypeError: Constructor DataView requires 'new'.
10 PASS EventSource() threw exception TypeError: DOM object constructor cannot be c alled as a function.. 10 PASS EventSource() threw exception TypeError: Failed to construct 'EventSource': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
11 PASS FileReader() threw exception TypeError: DOM object constructor cannot be ca lled as a function.. 11 PASS FileReader() threw exception TypeError: Failed to construct 'FileReader': P lease use the 'new' operator, this DOM object constructor cannot be called as a function..
12 PASS Float32Array() threw exception TypeError: Constructor Float32Array requires 'new'. 12 PASS Float32Array() threw exception TypeError: Constructor Float32Array requires 'new'.
13 PASS Float64Array() threw exception TypeError: Constructor Float64Array requires 'new'. 13 PASS Float64Array() threw exception TypeError: Constructor Float64Array requires 'new'.
14 PASS Audio() threw exception TypeError: DOM object constructor cannot be called as a function.. 14 PASS Audio() threw exception TypeError: Failed to construct 'HTMLAudioElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
15 PASS Image() threw exception TypeError: DOM object constructor cannot be called as a function.. 15 PASS Image() threw exception TypeError: DOM object constructor cannot be called as a function..
16 PASS Option() threw exception TypeError: DOM object constructor cannot be called as a function.. 16 PASS Option() threw exception TypeError: Failed to construct 'HTMLOptionElement' : Please use the 'new' operator, this DOM object constructor cannot be called as a function..
17 PASS Int16Array() threw exception TypeError: Constructor Int16Array requires 'ne w'. 17 PASS Int16Array() threw exception TypeError: Constructor Int16Array requires 'ne w'.
18 PASS Int32Array() threw exception TypeError: Constructor Int32Array requires 'ne w'. 18 PASS Int32Array() threw exception TypeError: Constructor Int32Array requires 'ne w'.
19 PASS Int8Array() threw exception TypeError: Constructor Int8Array requires 'new' . 19 PASS Int8Array() threw exception TypeError: Constructor Int8Array requires 'new' .
20 PASS MessageChannel() threw exception TypeError: DOM object constructor cannot b e called as a function.. 20 PASS MessageChannel() threw exception TypeError: Failed to construct 'MessageCha nnel': Please use the 'new' operator, this DOM object constructor cannot be call ed as a function..
21 PASS SharedWorker() threw exception TypeError: DOM object constructor cannot be called as a function.. 21 PASS SharedWorker() threw exception TypeError: Failed to construct 'SharedWorker ': Please use the 'new' operator, this DOM object constructor cannot be called a s a function..
22 PASS Uint16Array() threw exception TypeError: Constructor Uint16Array requires ' new'. 22 PASS Uint16Array() threw exception TypeError: Constructor Uint16Array requires ' new'.
23 PASS Uint32Array() threw exception TypeError: Constructor Uint32Array requires ' new'. 23 PASS Uint32Array() threw exception TypeError: Constructor Uint32Array requires ' new'.
24 PASS Uint8Array() threw exception TypeError: Constructor Uint8Array requires 'ne w'. 24 PASS Uint8Array() threw exception TypeError: Constructor Uint8Array requires 'ne w'.
25 PASS WebKitCSSMatrix() threw exception TypeError: DOM object constructor cannot be called as a function.. 25 PASS WebKitCSSMatrix() threw exception TypeError: Failed to construct 'CSSMatrix ': Please use the 'new' operator, this DOM object constructor cannot be called a s a function..
26 PASS WebKitPoint() threw exception TypeError: DOM object constructor cannot be c alled as a function.. 26 PASS WebKitPoint() threw exception TypeError: Failed to construct 'DOMPoint': Pl ease use the 'new' operator, this DOM object constructor cannot be called as a f unction..
27 PASS WebSocket() threw exception TypeError: DOM object constructor cannot be cal led as a function.. 27 PASS WebSocket() threw exception TypeError: Failed to construct 'WebSocket': Ple ase use the 'new' operator, this DOM object constructor cannot be called as a fu nction..
28 PASS Worker() threw exception TypeError: DOM object constructor cannot be called as a function.. 28 PASS Worker() threw exception TypeError: Failed to construct 'Worker': Please us e the 'new' operator, this DOM object constructor cannot be called as a function ..
29 PASS XMLHttpRequest() threw exception TypeError: DOM object constructor cannot b e called as a function.. 29 PASS XMLHttpRequest() threw exception TypeError: Failed to construct 'XMLHttpReq uest': Please use the 'new' operator, this DOM object constructor cannot be call ed as a function..
30 PASS XSLTProcessor() threw exception TypeError: DOM object constructor cannot be called as a function.. 30 PASS XSLTProcessor() threw exception TypeError: Failed to construct 'XSLTProcess or': Please use the 'new' operator, this DOM object constructor cannot be called as a function..
31 PASS successfullyParsed is true 31 PASS successfullyParsed is true
32 32
33 TEST COMPLETE 33 TEST COMPLETE
34 34
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698