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

Unified Diff: LayoutTests/fast/js/Promise-simple-resolve.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-simple-resolve.html
diff --git a/LayoutTests/fast/js/Promise-simple-fulfill.html b/LayoutTests/fast/js/Promise-simple-resolve.html
similarity index 85%
rename from LayoutTests/fast/js/Promise-simple-fulfill.html
rename to LayoutTests/fast/js/Promise-simple-resolve.html
index 77b8c4c5d916b486a0d02a45164a29331a622e04..d8164e5ec714fcaa3020b5bbb077d78872ce821a 100644
--- a/LayoutTests/fast/js/Promise-simple-fulfill.html
+++ b/LayoutTests/fast/js/Promise-simple-resolve.html
@@ -11,9 +11,9 @@ description('Test Promise.');
window.jsTestIsAsync = true;
-var future = new Promise(function(resolver) {
+var future = new Promise(function(resolve) {
setTimeout(function() {
- resolver.fulfill('hello');
+ resolve('hello');
}, 0);
}).then(function(result) {
window.result = result;

Powered by Google App Engine
This is Rietveld 408576698