| Index: LayoutTests/fast/js/Promise-then.html
|
| diff --git a/LayoutTests/fast/js/Promise-then.html b/LayoutTests/fast/js/Promise-then.html
|
| index 46a828a57490f40888116b21bda1c6d49caaa404..62d1923792f010b24bfe5590455e700b0ad2a277 100644
|
| --- a/LayoutTests/fast/js/Promise-then.html
|
| +++ b/LayoutTests/fast/js/Promise-then.html
|
| @@ -21,19 +21,21 @@ var firstPromise = new Promise(function(newResolve) {
|
| var secondPromise = firstPromise.then(function(result) {
|
| window.thisInFulfillCallback = this;
|
| shouldBeFalse('thisInFulfillCallback === firstPromise');
|
| - 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');
|
| shouldBeTrue('firstPromise instanceof Promise');
|
| shouldBeTrue('secondPromise instanceof Promise');
|
|
|
| -shouldThrow('firstPromise.then(null)', '"TypeError: fulfillCallback must be a function or undefined"');
|
| -shouldThrow('firstPromise.then(undefined, null)', '"TypeError: rejectCallback must be a function or undefined"');
|
| -shouldThrow('firstPromise.then(37)', '"TypeError: fulfillCallback must be a function or undefined"');
|
| +shouldThrow('firstPromise.then(null)', '"TypeError: onFulfilled must be a function or undefined"');
|
| +shouldThrow('firstPromise.then(undefined, null)', '"TypeError: onRejected must be a function or undefined"');
|
| +shouldThrow('firstPromise.then(37)', '"TypeError: onFulfilled must be a function or undefined"');
|
|
|
| resolve('hello');
|
|
|
|
|