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

Unified Diff: LayoutTests/fast/js/Promise-static-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-static-resolve.html
diff --git a/LayoutTests/fast/js/Promise-static-resolve.html b/LayoutTests/fast/js/Promise-static-resolve.html
index 95ec15718b0d5e75423e06a50460440fef96c915..c08d5dab4f580f5999324471bedc05b0e72cc366 100644
--- a/LayoutTests/fast/js/Promise-static-resolve.html
+++ b/LayoutTests/fast/js/Promise-static-resolve.html
@@ -12,8 +12,8 @@ description('Test Promise.');
window.jsTestIsAsync = true;
result = undefined;
-var resolver;
-var promise = Promise.resolve(new Promise(function (r) { resolver = r;} ));
+var resolve;
+var promise = Promise.resolve(new Promise(function (r) { resolve = r;} ));
promise.then(function(result) {
window.result = result;
@@ -24,7 +24,7 @@ promise.then(function(result) {
finishJSTest();
});
-resolver.resolve('hello');
+resolve('hello');
shouldBe('result', 'undefined');
</script>
<script src="resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698