Index: LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt |
diff --git a/LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt b/LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f896e2844fb027fe00cd2108315ce2aa92ca5a67 |
--- /dev/null |
+++ b/LayoutTests/fast/js/Promise-bindings-check-exception-expected.txt |
@@ -0,0 +1,39 @@ |
+Test whether the generated code handles exceptions correctly. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+PASS Rejected as expected: no arguments |
+PASS reason instanceof Error is true |
+TypeError: Failed to execute 'promiseCheck' on 'Internals': 4 arguments required, but only 0 present. |
+PASS Resolved as expected: valid arguments |
+PASS Resolved as expected: convert(long) |
+PASS Resolved as expected: convert(boolean) |
+PASS Rejected as expected: type error(Dictionary) |
+PASS reason instanceof Error is true |
+TypeError: Failed to execute 'promiseCheck' on 'Internals': parameter 3 ('arg3') is not an object. |
+PASS Resolved as expected: convert(String) |
+PASS Rejected as expected: conversion error(toString) |
+PASS reason instanceof Error is true |
+Error: Thrown from toString |
+PASS Rejected as expected: rejected by the impl |
+PASS reason instanceof Error is true |
+InvalidStateError: Failed to execute 'promiseCheck' on 'Internals': Thrown from the native implementation. |
+PASS Rejected as expected: no arguments |
+PASS reason instanceof Error is true |
+TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': 2 arguments required, but only 0 present. |
+PASS Resolved as expected: valid arguments |
+PASS Resolved as expected: valid arguments |
+PASS Rejected as expected: type error(Dictionary) |
+PASS reason instanceof Error is true |
+TypeError: Failed to execute 'promiseCheckWithoutExceptionState' on 'Internals': parameter 1 ('arg1') is not an object. |
+PASS Resolved as expected: convert(String...) |
+PASS Rejected as expected: conversion error(String...) |
+PASS reason instanceof Error is true |
+Error: Thrown from toString |
+PASS Rejected as expected: range error(octet) |
+PASS reason instanceof Error is true |
+TypeError: Failed to execute 'promiseCheckRange' on 'Internals': Value is outside the 'octet' value range. |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |