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

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

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 11 months 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/external/wpt/resources/testharness.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js b/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
index a6e7913e7bcb878f7719714aa30f75b0313dae10..20318b0bd08336cd12bf88a6151fdd47989f48d6 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
@@ -527,12 +527,14 @@ policies and contribution forms [3].
tests.promise_tests = Promise.resolve();
}
tests.promise_tests = tests.promise_tests.then(function() {
+ var donePromise = new Promise(function(resolve) {
+ test.add_cleanup(resolve);
+ });
var promise = test.step(func, test, test);
test.step(function() {
assert_not_equals(promise, undefined);
});
- return Promise.resolve(promise)
- .then(
+ Promise.resolve(promise).then(
function() {
test.done();
})
@@ -544,6 +546,7 @@ policies and contribution forms [3].
assert(false, "promise_test", null,
"Unhandled rejection with value: ${value}", {value:value});
}));
+ return donePromise;
});
}

Powered by Google App Engine
This is Rietveld 408576698