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

Unified Diff: LayoutTests/http/tests/fetch/chromium/error-messages.html

Issue 1295373003: Remove sequential_promise_test helper, just use promise_test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove testharness-helpers.js inclusion from bluetooth tests Created 5 years, 4 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
« no previous file with comments | « LayoutTests/bluetooth/writeValue.html ('k') | LayoutTests/http/tests/fetch/resources/thorough-util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/chromium/error-messages.html
diff --git a/LayoutTests/http/tests/fetch/chromium/error-messages.html b/LayoutTests/http/tests/fetch/chromium/error-messages.html
index 31faeff60c0d7ffdfe96bd33f35e4f00f8c03884..a4e1163784b439affd5f374934a129238e2fd49c 100644
--- a/LayoutTests/http/tests/fetch/chromium/error-messages.html
+++ b/LayoutTests/http/tests/fetch/chromium/error-messages.html
@@ -4,12 +4,12 @@
<script src="/resources/testharness-helpers.js"></script>
<script src="../resources/fetch-test-helpers.js"></script>
<script>
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('../resources/doctype.html')
.then(function() {}, t.unreached_func('must resolve'));
}, 'fetch() with 200 should not output error messages');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('../resources/not-found.html')
.then(function() {}, t.unreached_func('must resolve'));
}, 'fetch() with 404 should not output error messages');
@@ -17,12 +17,12 @@ sequential_promise_test(function(t) {
// Two didFail() errors
// that have console error messages from outside modules/fetch,
// and thus we OMIT messages from modules/fetch.
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('../resources/redirect-loop.php?Count=100')
.then(t.unreached_func('must reject'), function() {});
}, 'net::ERR_TOO_MANY_REDIRECTS should not output error messages');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('../resources/slow-failure.cgi')
.then(function() {}, t.unreached_func('must resolve'));
}, 'net::ERR_INVALID_CHUNKED_ENCODING should not output error messages');
@@ -30,7 +30,7 @@ sequential_promise_test(function(t) {
// A didFailAccessControlCheck() error
// that has NO console error messages from outside modules/fetch,
// and thus we OUTPUT a message from modules/fetch.
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('http://localhost:8000/fetch/resources/doctype.html')
.then(t.unreached_func('must reject'), function() {});
}, 'A didFailAccessControlCheck() error should output an error message');
@@ -38,12 +38,12 @@ sequential_promise_test(function(t) {
// A didFailRedirectCheck() error
// that has NO console error messages from outside modules/fetch,
// and thus we OUTPUT a message from modules/fetch.
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return fetch('http://localhost:8000/fetch/resources/redirect-loop.php?Count=100&ACAOrigin=*')
.then(t.unreached_func('must reject'), function() {});
}, 'A didFailRedirectCheck() error should output an error message');
-sequential_promise_test(function(t) {
+promise_test(function(t) {
return Promise.resolve()
.then(function() {
var request = new Request('http://localhost/');
« no previous file with comments | « LayoutTests/bluetooth/writeValue.html ('k') | LayoutTests/http/tests/fetch/resources/thorough-util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698