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

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js

Issue 1211623005: Unify multiple sequential_promise_test definitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update fetch templates and remove new duplicate of this method Created 5 years, 6 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/http/tests/navigatorconnect/resources/test-helpers.js
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js b/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js
index 9c40755d8c447f05997677e1b3a6d9b88f5f926a..66d40dab74c4b406d69905892d4c83c125d30ca1 100644
--- a/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js
+++ b/LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js
@@ -90,19 +90,3 @@ function wrap_in_port(maybe_port) {
}
);
}
-
-var promise_tests = Promise.resolve();
-// Helper function to run promise tests one after the other.
-// TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/files
-// gets through.
-function sequential_promise_test(func, name) {
- var test = async_test(name);
- promise_tests = promise_tests.then(function() {
- return test.step(func, test, test);
- }).then(function() {
- test.done();
- }).catch(test.step_func(function(value) {
- // step_func catches the error again so the error doesn't propagate.
- throw value;
- }));
-}

Powered by Google App Engine
This is Rietveld 408576698