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

Unified Diff: LayoutTests/fast/js/Promise-exception.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-exception.html
diff --git a/LayoutTests/fast/js/Promise-exception.html b/LayoutTests/fast/js/Promise-exception.html
index 13409cf987b5bb6cbf6b87f42dee7bf327d39033..aff3f6acdb8265944c19ab27cce293c95516e3e8 100644
--- a/LayoutTests/fast/js/Promise-exception.html
+++ b/LayoutTests/fast/js/Promise-exception.html
@@ -24,7 +24,8 @@ var thirdPromise = secondPromise.then(function(result) {
fail('Unexpected invocation of fulfillCallback');
}, function(result) {
window.thisInThenCallback = this;
- shouldBeTrue('thisInThenCallback === thirdPromise');
+ shouldBeFalse('thisInThenCallback === thirdPromise');
+ shouldBeTrue('thisInThenCallback === window');
window.result = result;
shouldBeEqualToString('result', 'foobar');
finishJSTest();
« no previous file with comments | « LayoutTests/fast/js/Promise-catch-in-workers-expected.txt ('k') | LayoutTests/fast/js/Promise-exception-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698