Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: LayoutTests/fast/js/Promise-chain.html

Issue 209443009: Delete Promises Layout Tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/js/Promise-chain.html
diff --git a/LayoutTests/fast/js/Promise-chain.html b/LayoutTests/fast/js/Promise-chain.html
deleted file mode 100644
index 18da7d451f72452be3a502fd30c0ccf14bd74d84..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/js/Promise-chain.html
+++ /dev/null
@@ -1,67 +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 resolve;
-var promise = new Promise(function (r) {resolve = r;});
-var operation;
-
-promise.then(function(result) { // fulfilled - continue
- testPassed('fulfilled');
- window.result = result;
- shouldBeEqualToString('result', 'hello');
- return 'hello2';
-}, function() {
- testFailed('rrejected');
-}).then() // pass through
-.then(function(result) { // fulfilled - throw an exception
- testPassed('fulfilled');
- window.result = result;
- shouldBeEqualToString('result', 'hello2');
- throw 'error';
-}, function() {
- testFailed('rejected');
-}).then(function() { // rejected - throw an exception
- testFailed('fulfilled');
-}, function(result) {
- testPassed('rejected');
- window.result = result;
- shouldBeEqualToString('result', 'error');
- throw 'error2';
-}).then() // pass through
-.then(function() { // rejected - recover
- testFailed('fulfilled');
-}, function(result) {
- testPassed('rejected');
- window.result = result;
- shouldBeEqualToString('result', 'error2');
- return 'recovered';
-}).then(function(result) { // fulfilled - the last
- testPassed('fulfilled');
- window.result = result;
- shouldBeEqualToString('result', 'recovered');
- shouldBeEqualToString('operation', 'asynchronous');
- finishJSTest();
-}, function() {
- testFailed('rejected');
- finishJSTest();
-});
-
-operation = 'synchronous';
-resolve('hello');
-
-// The chain should be executed asynchronously.
-operation = 'asynchronous';
-
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/js/Promise-catch-in-workers-expected.txt ('k') | LayoutTests/fast/js/Promise-chain-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698