| Index: LayoutTests/fast/js/Promise-resolve-with-then-reject.html
|
| diff --git a/LayoutTests/fast/js/Promise-resolve-with-then-reject.html b/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
|
| index c9c53ac26ffc85c4e2a7811b6e1992d004899b4b..88ae3497f2e15234ffbaa77deef30075e6e5ace8 100644
|
| --- a/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
|
| +++ b/LayoutTests/fast/js/Promise-resolve-with-then-reject.html
|
| @@ -10,13 +10,12 @@
|
| description('Test Promise.');
|
|
|
| window.jsTestIsAsync = true;
|
| -var callback;
|
| var value = {
|
| then: function(fulfillCallback, rejectCallback) {
|
| testPassed('value.then is called.');
|
| window.thisValue = this;
|
| shouldBe('thisValue', 'value');
|
| - callback = rejectCallback;
|
| + rejectCallback('hello');
|
| }
|
| };
|
| var promise = new Promise(function(resolve) { resolve(value); });
|
| @@ -33,7 +32,6 @@ promise.then(function(result) {
|
|
|
| debug('The promise is not rejected now.');
|
|
|
| -callback('hello');
|
| </script>
|
| <script src="resources/js-test-post.js"></script>
|
| </body>
|
|
|