Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit 873f968

Browse files
Ms2gerjgraham
authored andcommitted
Try to catch misuse of promise_test earlier. (#220)
1 parent 5ed9b8f commit 873f968

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testharness.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,11 @@ policies and contribution forms [3].
527527
tests.promise_tests = Promise.resolve();
528528
}
529529
tests.promise_tests = tests.promise_tests.then(function() {
530-
return Promise.resolve(test.step(func, test, test))
530+
var promise = test.step(func, test, test);
531+
test.step(function() {
532+
assert_not_equals(promise, undefined);
533+
});
534+
return Promise.resolve(promise)
531535
.then(
532536
function() {
533537
test.done();

0 commit comments

Comments
 (0)