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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/leak.html

Issue 2805813003: Leak test for crbug.com/707544
Patch Set: Created 3 years, 8 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 | no next file » | 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 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 window.jsTestIsAsync = true;
8 description('Untitled test.');
9
10 shouldBe('typeof window.internals.observeGC', '"function"', 'this test requires window.internals');
11
12 var frag = document.createElement('div');
13 let collection = frag.getElementsByTagName('foobar');
14 var leakObserver = internals.observeGC(collection);
15 collection = null;
16 frag = null;
17 gc();
18 shouldBeTrue("leakObserver.wasCollected");
19 finishJSTest();
20 </script>
21 </body>
22 </html>
23
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698