Bug 1337814 - Add test for cancelling currently executing rIC callback

This commit is contained in:
janekptacijarabaci 2018-04-18 15:19:52 +02:00 committed by Roy Tam
commit f95d317c93

View file

@ -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>