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

Unified Diff: LayoutTests/fast/js/Promise-simple.html

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/Promise-simple.html
diff --git a/LayoutTests/fast/js/Promise-simple.html b/LayoutTests/fast/js/Promise-simple.html
index 42ed52a39c2c75bb9b1f81bcfeb36a741306756e..68c0ca4e58aaa3efa558640f26461e449d129ed0 100644
--- a/LayoutTests/fast/js/Promise-simple.html
+++ b/LayoutTests/fast/js/Promise-simple.html
@@ -20,13 +20,15 @@ var firstPromise = new Promise(function(newResolve) {
var secondPromise = firstPromise.then(function(result) {
window.thisInFulfillCallback = this;
- shouldBeTrue('thisInFulfillCallback === secondPromise');
+ shouldBeFalse('thisInFulfillCallback === secondPromise');
+ shouldBeTrue('thisInFulfillCallback === window');
window.result = result;
shouldBeEqualToString('result', 'hello');
finishJSTest();
});
-shouldBeTrue('thisInInit === firstPromise');
+shouldBeFalse('thisInInit === firstPromise');
+shouldBeTrue('thisInInit === window');
resolve('hello');
« no previous file with comments | « LayoutTests/fast/js/Promise-resolve-with-then-reject-expected.txt ('k') | LayoutTests/fast/js/Promise-simple-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698