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

Unified Diff: LayoutTests/fast/js/Promise-then.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-then.html
diff --git a/LayoutTests/fast/js/Promise-then.html b/LayoutTests/fast/js/Promise-then.html
index 3908afc06e4dd52947ee591be2c7ae0333ed3323..46a828a57490f40888116b21bda1c6d49caaa404 100644
--- a/LayoutTests/fast/js/Promise-then.html
+++ b/LayoutTests/fast/js/Promise-then.html
@@ -11,11 +11,11 @@ description('Test Promise.');
window.jsTestIsAsync = true;
-var resolver;
+var resolve;
-var firstPromise = new Promise(function(newResolver) {
+var firstPromise = new Promise(function(newResolve) {
window.thisInInit = this;
- resolver = newResolver;
+ resolve = newResolve;
});
var secondPromise = firstPromise.then(function(result) {
@@ -35,7 +35,7 @@ shouldThrow('firstPromise.then(null)', '"TypeError: fulfillCallback must be a fu
shouldThrow('firstPromise.then(undefined, null)', '"TypeError: rejectCallback must be a function or undefined"');
shouldThrow('firstPromise.then(37)', '"TypeError: fulfillCallback must be a function or undefined"');
-resolver.fulfill('hello');
+resolve('hello');
</script>
<script src="resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698