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

Unified Diff: LayoutTests/fast/js/resources/Promise-init-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-init-in-workers.js
diff --git a/LayoutTests/fast/js/resources/Promise-init-in-workers.js b/LayoutTests/fast/js/resources/Promise-init-in-workers.js
index e5962790255dd767dc5e184ece1f5ef469910335..3b8c94313e23e3739dd1b3e71938c9d26e3cf321 100644
--- a/LayoutTests/fast/js/resources/Promise-init-in-workers.js
+++ b/LayoutTests/fast/js/resources/Promise-init-in-workers.js
@@ -15,7 +15,8 @@ var promise = new Promise(function(newResolve, newReject) {
shouldBeTrue('promise instanceof Promise');
shouldBe('promise.constructor', 'Promise');
-shouldBe('thisInInit', 'promise');
+shouldBeFalse('thisInInit === promise');
+shouldBeTrue('thisInInit === global');
shouldBeTrue('resolve instanceof Function');
shouldBeTrue('reject instanceof Function');
« no previous file with comments | « LayoutTests/fast/js/resources/Promise-catch-in-workers.js ('k') | LayoutTests/fast/js/resources/Promise-resolve-in-workers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698