OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 test( |
| 6 () => requestIdleCallback(() => |
| 7 assert_unreached('Should not trigger the idle task during the test.')), |
| 8 'Untriggered idle task does not introduce memory leak.'); |
| 9 |
| 10 test( |
| 11 () => { |
| 12 const handle = requestIdleCallback(() => |
| 13 assert_unreached('Should not trigger the idle task during the test.')); |
| 14 cancelIdleCallback(handle); |
| 15 }, 'Canceled idle task does not introduce memory leak.'); |
| 16 </script> |
OLD | NEW |