blob: a97c70ce2c5b3e3426fba80503bdabd68e0f077e [file] [log] [blame]
<!doctype html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
test(
() => {
requestIdleCallback(() =>
assert_unreached('Should not trigger the idle task during the test.'));
}, 'Untriggered idle task does not introduce memory leak.');
test(
() => {
const handle = requestIdleCallback(() =>
assert_unreached('Should not trigger the idle task during the test.'));
cancelIdleCallback(handle);
}, 'Canceled idle task does not introduce memory leak.');
</script>