mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae
This commit is contained in:
parent
a14b952fa3
commit
87dcce0f06
66 changed files with 697 additions and 266 deletions
|
@ -18,6 +18,19 @@ let waitForNextTask = () => {
|
|||
});
|
||||
};
|
||||
|
||||
let waitUntilConditionIsMet = cond => {
|
||||
return new Promise(resolve => {
|
||||
let checkCondition = function() {
|
||||
if (cond.apply(null)) {
|
||||
resolve();
|
||||
} else {
|
||||
step_timeout(checkCondition.bind(null,cond), 0);
|
||||
}
|
||||
}
|
||||
step_timeout(checkCondition.bind(null, cond), 0);
|
||||
});
|
||||
}
|
||||
|
||||
let waitForEventToFire = () => {
|
||||
return new Promise(resolve => {
|
||||
let waitForIt = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue