Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: third_party/WebKit/LayoutTests/idle-callback/untriggered-do-not-leak.html

Issue 2618893002: Fix memory leak with ScriptedIdleTaskController (Closed)
Patch Set: Improve test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698