mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Bug 1337814 - Add test for cancelling currently executing rIC callback
This commit is contained in:
parent
733673ec25
commit
f95d317c93
1 changed files with 6 additions and 0 deletions
|
|
@ -23,4 +23,10 @@
|
|||
t.done();
|
||||
}, 2000);
|
||||
}, "A cancelled callback is never invoked");
|
||||
|
||||
async_test(function (t) {
|
||||
var handle = requestIdleCallback(t.step_func_done(function () {
|
||||
cancelIdleCallback(handle);
|
||||
}));
|
||||
}, "Cancelling the currently executing idle callback should be allowed");
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue