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

Unified Diff: LayoutTests/fast/js/Promise-resolve.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-resolve.html
diff --git a/LayoutTests/fast/js/Promise-resolve.html b/LayoutTests/fast/js/Promise-resolve.html
index 000e7fd9093f3ba6adb2422ebbdfd6da9295712c..a5fbc0a226d2562b8201ef9688f2f2024f5a813d 100644
--- a/LayoutTests/fast/js/Promise-resolve.html
+++ b/LayoutTests/fast/js/Promise-resolve.html
@@ -17,7 +17,8 @@ var firstPromise = new Promise(function(resolve) {
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();
« no previous file with comments | « LayoutTests/fast/js/Promise-onRejected-deep-expected.txt ('k') | LayoutTests/fast/js/Promise-resolve-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698