| Index: LayoutTests/fast/js/Promise-static-cast.html
|
| diff --git a/LayoutTests/fast/js/Promise-static-cast.html b/LayoutTests/fast/js/Promise-static-cast.html
|
| deleted file mode 100644
|
| index b10cd39e0f7785030327e8cd700fb716c56e4392..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/fast/js/Promise-static-cast.html
|
| +++ /dev/null
|
| @@ -1,44 +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.cast');
|
| -
|
| -window.jsTestIsAsync = true;
|
| -result = undefined;
|
| -result2 = undefined;
|
| -
|
| -var resolve;
|
| -var value = new Promise(function (r) { resolve = r;} );
|
| -var promise = Promise.cast(value);
|
| -
|
| -// If [[IsPromise]] is true, Promise.cast simply returns argument.
|
| -shouldBeTrue('promise === value');
|
| -
|
| -promise.then(function(res) {
|
| - result = res;
|
| - shouldBeEqualToString('result', 'hello');
|
| -
|
| - return Promise.cast(42).then(function (res) {
|
| - result2 = res;
|
| - shouldBe('result2', '42');
|
| - });
|
| -}).then(function () {
|
| - testPassed('fulfilled');
|
| - finishJSTest();
|
| -}, function() {
|
| - testFailed('rejected');
|
| - finishJSTest();
|
| -});
|
| -
|
| -resolve('hello');
|
| -shouldBe('result', 'undefined');
|
| -shouldBe('result2', 'undefined');
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|