Index: third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
index 91dfab58c2b31e507092a71151f632fceb434825..5b924b10948fd885e6941cb3d76a18b4cc16c1a7 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
@@ -523,11 +523,9 @@ policies and contribution forms [3]. |
function promise_test(func, name, properties) { |
var test = async_test(name, properties); |
// If there is no promise tests queue make one. |
- test.step(function() { |
- if (!tests.promise_tests) { |
- tests.promise_tests = Promise.resolve(); |
- } |
- }); |
+ if (!tests.promise_tests) { |
+ tests.promise_tests = Promise.resolve(); |
+ } |
tests.promise_tests = tests.promise_tests.then(function() { |
return Promise.resolve(test.step(func, test, test)) |
.then( |