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

Side by Side Diff: LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt

Issue 232563003: API functions returning Promises should not throw exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
OLDNEW
(Empty)
1 Test whether the generated code handles exceptions correctly.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5 PASS Rejected as expected: no arguments
6 PASS reason instanceof Error is true
7 TypeError: Failed to execute 'promiseCheck' on 'Internals': 4 arguments required , but only 0 present.
8 PASS Resolved as expected: valid arguments
9 PASS Resolved as expected: convert(long)
10 PASS Resolved as expected: convert(boolean)
11 PASS Rejected as expected: type error(Dictionary)
12 PASS reason instanceof Error is true
13 TypeError: Failed to execute 'promiseCheck' on 'Internals': parameter 3 ('arg3') is not an object.
14 PASS Resolved as expected: convert(String)
15 PASS Rejected as expected: conversion error(toString)
16 PASS reason instanceof Error is true
17 Error: Thrown from toString
18 PASS Rejected as expected: rejected by the impl
19 PASS reason instanceof Error is true
20 InvalidStateError: Failed to execute 'promiseCheck' on 'Internals': Thrown from the native implementation.
21 PASS Rejected as expected: no arguments
22 PASS reason instanceof Error is true
23 TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': 2 arguments required, but only 0 present.
24 PASS Resolved as expected: valid arguments
25 PASS Resolved as expected: valid arguments
26 PASS Rejected as expected: type error(Dictionary)
27 PASS reason instanceof Error is true
28 TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': parameter 1 ('arg1') is not an object.
29 PASS Resolved as expected: convert(String...)
30 PASS Rejected as expected: conversion error(String...)
31 PASS reason instanceof Error is true
32 Error: Thrown from toString
33 PASS Rejected as expected: range error(octet)
34 PASS reason instanceof Error is true
35 TypeError: Failed to execute 'promiseCheckRange' on 'Internals': Value is outsid e the 'octet' value range.
36 PASS successfullyParsed is true
37
38 TEST COMPLETE
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698