Chromium Code Reviews

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, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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');

Powered by Google App Engine