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

Unified Diff: LayoutTests/fast/js/Promise-resolve-with-then-reject.html

Issue 23567043: Promise init callback takes resolve and reject functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html ('k') | LayoutTests/fast/js/Promise-simple.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/Promise-resolve-with-then-reject.html
diff --git a/LayoutTests/fast/js/Promise-resolve-with-then-reject.html b/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
index d98b84bfeaa9668b9eccab297ba756c91a17a059..c9c53ac26ffc85c4e2a7811b6e1992d004899b4b 100644
--- a/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
+++ b/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
@@ -19,7 +19,7 @@ var value = {
callback = rejectCallback;
}
};
-var promise = new Promise(function(r) { r.resolve(value); });
+var promise = new Promise(function(resolve) { resolve(value); });
promise.then(function(result) {
testFailed('fulfilled');
« no previous file with comments | « LayoutTests/fast/js/Promise-resolve-with-then-fulfill.html ('k') | LayoutTests/fast/js/Promise-simple.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698