Index: LayoutTests/fast/js/Promise-simple.html |
diff --git a/LayoutTests/fast/js/Promise-simple.html b/LayoutTests/fast/js/Promise-simple.html |
index 42ed52a39c2c75bb9b1f81bcfeb36a741306756e..68c0ca4e58aaa3efa558640f26461e449d129ed0 100644 |
--- a/LayoutTests/fast/js/Promise-simple.html |
+++ b/LayoutTests/fast/js/Promise-simple.html |
@@ -20,13 +20,15 @@ var firstPromise = new Promise(function(newResolve) { |
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(); |
}); |
-shouldBeTrue('thisInInit === firstPromise'); |
+shouldBeFalse('thisInInit === firstPromise'); |
+shouldBeTrue('thisInInit === window'); |
resolve('hello'); |