From c2899e4ed29217ab3d3450676911008fe4e32b30 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 27 Mar 2017 18:09:53 +0200 Subject: [PATCH] Fetch: add return statement to cors-preflight-status.any.js Supersedes #5228. --- fetch/api/cors/cors-preflight-status.any.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch/api/cors/cors-preflight-status.any.js b/fetch/api/cors/cors-preflight-status.any.js index 2c3e5acd23076f..037526e618ce9b 100644 --- a/fetch/api/cors/cors-preflight-status.any.js +++ b/fetch/api/cors/cors-preflight-status.any.js @@ -15,7 +15,7 @@ function corsPreflightStatus(desc, corsUrl, preflightStatus) { urlParameters += "&preflight_status=" + preflightStatus; promise_test(function(test) { - fetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) { + return fetch(RESOURCES_DIR + "clean-stash.py?token=" + uuid_token).then(function(resp) { assert_equals(resp.status, 200, "Clean stash response's status is 200"); if (200 <= preflightStatus && 299 >= preflightStatus) { return fetch(url + urlParameters, requestInit).then(function(resp) {