Update web-platform-tests to revision 85e8612e81c8b478c8cac7260436646e48d3f7ae

This commit is contained in:
WPT Sync Bot 2019-04-16 21:36:56 -04:00
parent a14b952fa3
commit 87dcce0f06
66 changed files with 697 additions and 266 deletions

View file

@ -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() {