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

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, 4 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 Operations that return a Promise type should handle exceptions by returning a re jected Promise with the exception.
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': 5 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: conversion error([String])
19 PASS reason instanceof Error is true
20 Error: Thrown from toString
21 PASS Rejected as expected: rejected by the impl
22 PASS reason instanceof Error is true
23 InvalidStateError: Failed to execute 'promiseCheck' on 'Internals': Thrown from the native implementation.
24 PASS Rejected as expected: no arguments
25 PASS reason instanceof Error is true
26 TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': 2 arguments required, but only 0 present.
27 PASS Resolved as expected: valid arguments
28 PASS Resolved as expected: valid arguments
29 PASS Rejected as expected: type error(Dictionary)
30 PASS reason instanceof Error is true
31 TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': parameter 1 ('arg1') is not an object.
32 PASS Resolved as expected: convert(String...)
33 PASS Rejected as expected: conversion error(String...)
34 PASS reason instanceof Error is true
35 Error: Thrown from toString
36 PASS Rejected as expected: range error(octet)
37 PASS reason instanceof Error is true
38 TypeError: Failed to execute 'promiseCheckRange' on 'Internals': Value is outsid e the 'octet' value range.
39 PASS successfullyParsed is true
40
41 TEST COMPLETE
42
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/Promise-bindings-check-exception.html ('k') | Source/bindings/core/v8/ExceptionState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698