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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js

Issue 2468053002: Import wpt@9fcccf38b6be00f71ffa6bd6e29c5aa1ef25ee8c (Closed)
Patch Set: Skip cssom and svg/shapes, remove unwanted baseline Created 4 years, 1 month 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: 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();

Powered by Google App Engine
This is Rietveld 408576698