blob: 95622c3232c14c6e871980411564f5aa99c22cfa [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description('This tests that requestIdleCallback will execute the function even when there is a pending task for a suspended document');
jsTestIsAsync = true;
didExecuteIdleCallback = false;
window.onload = () => {
setTimeout(() => {
shouldBeTrue('didExecuteIdleCallback');
finishJSTest();
}, 100);
requestIdleCallback(() => {
didExecuteIdleCallback = true;
});
}
</script>
</body>
</html>