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

Unified Diff: LayoutTests/fast/js/Promise-init-expected.txt

Issue 17505004: Introduce Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/Promise-init-expected.txt
diff --git a/LayoutTests/fast/js/Promise-init-expected.txt b/LayoutTests/fast/js/Promise-init-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3a762623ebab0ae8f3883be7261e9f8ebbd77314
--- /dev/null
+++ b/LayoutTests/fast/js/Promise-init-expected.txt
@@ -0,0 +1,16 @@
+Test Promise.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+PASS promise instanceof Promise is true
+PASS promise.constructor is Promise
+PASS thisInInit is promise
+PASS resolver instanceof PromiseResolver is true
+PASS resolver.constructor is PromiseResolver
+PASS new Promise() threw exception TypeError: Promise constructor takes a function argument.
+PASS new Promise(37) threw exception TypeError: Promise constructor takes a function argument.
+PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exception.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698