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

Unified Diff: LayoutTests/fast/js/resources/Promise-simple-in-workers.js

Issue 24980002: Implement AP2 Promises (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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/resources/Promise-simple-in-workers.js
diff --git a/LayoutTests/fast/js/resources/Promise-simple-in-workers.js b/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
index fb204549e6527611349d2ff13b480db75f8da92d..093b278c737e220d246bf2b5a5202c0d07917ca6 100644
--- a/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
+++ b/LayoutTests/fast/js/resources/Promise-simple-in-workers.js
@@ -15,12 +15,14 @@ var firstPromise = new Promise(function(newResolve) {
var secondPromise = firstPromise.then(function(result) {
global.thisInFulfillCallback = this;
- shouldBeTrue('thisInFulfillCallback === secondPromise');
+ shouldBeFalse('thisInFulfillCallback === secondPromise');
+ shouldBeTrue('thisInFulfillCallback === global');
global.result = result;
shouldBeEqualToString('result', 'hello');
finishJSTest();
});
-shouldBeTrue('thisInInit === firstPromise');
+shouldBeFalse('thisInInit === firstPromise');
+shouldBeTrue('thisInInit === global');
resolve('hello');
« no previous file with comments | « LayoutTests/fast/js/resources/Promise-resolve-in-workers.js ('k') | LayoutTests/fast/js/resources/Promise-then-in-workers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698