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

Unified Diff: LayoutTests/fast/js/Promise-init.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-init.html
diff --git a/LayoutTests/fast/js/Promise-init.html b/LayoutTests/fast/js/Promise-init.html
index a2ee6a7c5502751d5523a09e9ba17a3f6a21b24d..c14dd460a909802c2ba69f842a6c0b79d9ba2023 100644
--- a/LayoutTests/fast/js/Promise-init.html
+++ b/LayoutTests/fast/js/Promise-init.html
@@ -21,7 +21,8 @@ var promise = new Promise(function(newResolve, newReject) {
shouldBeTrue('promise instanceof Promise');
shouldBe('promise.constructor', 'Promise');
-shouldBe('thisInInit', 'promise');
+shouldBeFalse('thisInInit === promise');
+shouldBeTrue('thisInInit === window');
shouldBeTrue('resolve instanceof Function');
shouldBeTrue('reject instanceof Function');
« no previous file with comments | « LayoutTests/fast/js/Promise-exception-expected.txt ('k') | LayoutTests/fast/js/Promise-init-callback-receiver.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698