| Index: LayoutTests/fast/js/Promise-static-reject.html
|
| diff --git a/LayoutTests/fast/js/Promise-simple-fulfill.html b/LayoutTests/fast/js/Promise-static-reject.html
|
| similarity index 69%
|
| copy from LayoutTests/fast/js/Promise-simple-fulfill.html
|
| copy to LayoutTests/fast/js/Promise-static-reject.html
|
| index 77b8c4c5d916b486a0d02a45164a29331a622e04..90f174d313bab45a9d65b740542c361c49bdd553 100644
|
| --- a/LayoutTests/fast/js/Promise-simple-fulfill.html
|
| +++ b/LayoutTests/fast/js/Promise-static-reject.html
|
| @@ -10,17 +10,17 @@
|
| description('Test Promise.');
|
|
|
| window.jsTestIsAsync = true;
|
| +result = undefined;
|
|
|
| -var future = new Promise(function(resolver) {
|
| - setTimeout(function() {
|
| - resolver.fulfill('hello');
|
| - }, 0);
|
| -}).then(function(result) {
|
| +Promise.reject('hello').then(function(result) {
|
| + testFailed('fulfilled');
|
| + finishJSTest();
|
| +}, function(result) {
|
| window.result = result;
|
| shouldBeEqualToString('result', 'hello');
|
| finishJSTest();
|
| });
|
| -
|
| +shouldBe('result', 'undefined');
|
| </script>
|
| <script src="resources/js-test-post.js"></script>
|
| </body>
|
|
|