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

Unified Diff: LayoutTests/fast/js/Promise-resolve-state.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
Index: LayoutTests/fast/js/Promise-resolve-state.html
diff --git a/LayoutTests/fast/js/Promise-fulfill.html b/LayoutTests/fast/js/Promise-resolve-state.html
similarity index 89%
rename from LayoutTests/fast/js/Promise-fulfill.html
rename to LayoutTests/fast/js/Promise-resolve-state.html
index d8a74703c4ac16fa908d2bb972d883ca8b404f5e..33cd6ea66e1bd3ff9812f88e2c3e841c20b70e7d 100644
--- a/LayoutTests/fast/js/Promise-fulfill.html
+++ b/LayoutTests/fast/js/Promise-resolve-state.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 promiseState = 'pending';
var promiseResult = undefined;
promise.then(function(result) {
@@ -25,7 +25,7 @@ promise.then(function(result) {
shouldBeEqualToString('promiseState', 'pending');
-resolver.fulfill('hello');
+resolve('hello');
shouldBeEqualToString('promiseState', 'pending');
« no previous file with comments | « LayoutTests/fast/js/Promise-resolve-chain.html ('k') | LayoutTests/fast/js/Promise-resolve-state-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698