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 |
deleted file mode 100644 |
index bf3360a45aa1cdaa66323f6533119702385914d3..0000000000000000000000000000000000000000 |
--- a/LayoutTests/fast/js/Promise-resolve-with-then-reject.html |
+++ /dev/null |
@@ -1,37 +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 value = { |
- then: function(fulfillCallback, rejectCallback) { |
- testPassed('value.then is called.'); |
- window.thisValue = this; |
- shouldBe('thisValue', 'value'); |
- rejectCallback('hello'); |
- } |
-}; |
-var promise = new Promise(function(resolve) { resolve(value); }); |
- |
-promise.then(function(result) { |
- testFailed('fulfilled'); |
- finishJSTest(); |
-}, function(result) { |
- testPassed('rejected'); |
- window.result = result; |
- shouldBeEqualToString('result', 'hello'); |
- finishJSTest(); |
-}); |
- |
-debug('The promise is not rejected now.'); |
- |
-</script> |
-</body> |
-</html> |