Update web-platform-tests to revision fd0429f0b45f975b25d85256dac33762134952c5

This commit is contained in:
WPT Sync Bot 2019-04-15 21:58:05 -04:00
parent 0ba7da4431
commit c8202ddbe1
50 changed files with 1210 additions and 191 deletions

View file

@ -1210,6 +1210,18 @@ window.Audit = (function() {
this._taskRunner._runNextTask();
}
// Runs |subTask| |time| milliseconds later. |setTimeout| is not allowed in
// WPT linter, so a thin wrapper around the harness's |step_timeout| is
// used here.
timeout(subTask, time) {
async_test((test) => {
test.step_timeout(() => {
subTask();
test.done();
}, time);
});
}
isPassed() {
return this._state === TaskState.FINISHED && this._result;
}