| Index: LayoutTests/fast/js/Promise-exception.html
|
| diff --git a/LayoutTests/fast/js/Promise-exception.html b/LayoutTests/fast/js/Promise-exception.html
|
| deleted file mode 100644
|
| index a4dc07fe45292354dc4019ae4e36ac257c24f63c..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/fast/js/Promise-exception.html
|
| +++ /dev/null
|
| @@ -1,36 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<script src="../../resources/js-test.js"></script>
|
| -</head>
|
| -<body>
|
| -<div id="description"></div>
|
| -<div id="console"></div>
|
| -<script>
|
| -description('Test Promise.');
|
| -
|
| -window.jsTestIsAsync = true;
|
| -
|
| -var firstPromise = new Promise(function(resolve) {
|
| - window.thisInInit = this;
|
| - resolve('hello');
|
| -});
|
| -
|
| -var secondPromise = firstPromise.then(function(result) {
|
| - throw 'foobar';
|
| -});
|
| -
|
| -var thirdPromise = secondPromise.then(function(result) {
|
| - fail('Unexpected invocation of fulfillCallback');
|
| -}, function(result) {
|
| - window.thisInThenCallback = this;
|
| - shouldBeFalse('thisInThenCallback === thirdPromise');
|
| - shouldBeTrue('thisInThenCallback === window');
|
| - window.result = result;
|
| - shouldBeEqualToString('result', 'foobar');
|
| - finishJSTest();
|
| -});
|
| -
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|