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 69ffe013ce5b50d1aaab8cb83d6dabadac7e1be6..49e386754ba7a2715e2231bafb6bca0c8dea6201 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js |
@@ -527,7 +527,11 @@ policies and contribution forms [3]. |
tests.promise_tests = Promise.resolve(); |
} |
tests.promise_tests = tests.promise_tests.then(function() { |
- return Promise.resolve(test.step(func, test, test)) |
+ var promise = test.step(func, test, test); |
+ test.step(function() { |
+ assert_not_equals(promise, undefined); |
+ }); |
+ return Promise.resolve(promise) |
.then( |
function() { |
test.done(); |