blob: a1c9a57f2000c05828b858756751c059e2a78890 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
window.requestAnimationFrame(function() {
parent.callbackInvoked = true;
doWork();
});
function timeoutPromise(interval) {
return new Promise((resolve, reject) => {
setTimeout(function(){
resolve("done");
}, interval);
});
}
async function doWork() {
parent.doDisplay();
await timeoutPromise(100);
parent.doCheckResult();
await timeoutPromise(100);
parent.doTestDone();
}
</script>
</body>
</html>