Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / js / Promise-bindings-check-exception-expected.txt
1 Operations that return a Promise type should handle exceptions by returning a rejected 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 outside the 'octet' value range.
39 PASS successfullyParsed is true
40
41 TEST COMPLETE
42