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

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: Use WeakPersistent 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698