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

Unified Diff: LayoutTests/fast/js/Promise-chain.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-catch.html ('k') | LayoutTests/fast/js/Promise-exception.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/Promise-chain.html
diff --git a/LayoutTests/fast/js/Promise-chain.html b/LayoutTests/fast/js/Promise-chain.html
index bc11054687362ef4a28908c121ad003f17601122..8995c847a68d167f30556b56d58f78e88c7da77e 100644
--- a/LayoutTests/fast/js/Promise-chain.html
+++ b/LayoutTests/fast/js/Promise-chain.html
@@ -11,8 +11,8 @@ description('Test Promise.');
window.jsTestIsAsync = true;
-var resolver;
-var promise = new Promise(function (r) {resolver = r;});
+var resolve;
+var promise = new Promise(function (r) {resolve = r;});
var operation;
promise.then(function(result) { // fulfilled - continue
@@ -57,7 +57,7 @@ promise.then(function(result) { // fulfilled - continue
});
operation = 'synchronous';
-resolver.fulfill('hello');
+resolve('hello');
// The chain should be executed asynchronously.
operation = 'asynchronous';
« no previous file with comments | « LayoutTests/fast/js/Promise-catch.html ('k') | LayoutTests/fast/js/Promise-exception.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698