mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Bug 1334904 - Add test for when rIC timeouts doesn't need timeout
This commit is contained in:
parent
7fd0085393
commit
733673ec25
1 changed files with 15 additions and 0 deletions
|
|
@ -25,4 +25,19 @@
|
|||
}
|
||||
window.requestIdleCallback(t.step_func(f));
|
||||
}, "requestIdleCallback callback should time out");
|
||||
|
||||
async_test(function (t) {
|
||||
assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
|
||||
function g(deadline) {
|
||||
assert_false(deadline.didTimeout)
|
||||
t.done();
|
||||
}
|
||||
|
||||
function f(deadline) {
|
||||
assert_false(deadline.didTimeout);
|
||||
window.requestIdleCallback(t.step_func(g), {timeout:100000});
|
||||
}
|
||||
window.requestIdleCallback(t.step_func(f));
|
||||
}, "requestIdleCallback callback should not time out");
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue