mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision fd0429f0b45f975b25d85256dac33762134952c5
This commit is contained in:
parent
0ba7da4431
commit
c8202ddbe1
50 changed files with 1210 additions and 191 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue