Index: LayoutTests/http/tests/resources/testharness-helpers.js |
diff --git a/LayoutTests/http/tests/resources/testharness-helpers.js b/LayoutTests/http/tests/resources/testharness-helpers.js |
index 89c7d44d197f8ba8a2b8c63797bdec451d7ccc63..a8322d0cbfdfa8d2e8cf62de94810523ecb40ad7 100644 |
--- a/LayoutTests/http/tests/resources/testharness-helpers.js |
+++ b/LayoutTests/http/tests/resources/testharness-helpers.js |
@@ -142,23 +142,3 @@ function stringifyDOMObject(object) |
} |
return JSON.stringify(deepCopy(object)); |
} |
- |
-(function() { |
- 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; |
- })); |
- } |
- |
- self.sequential_promise_test = sequential_promise_test; |
-})(); |