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

Side by Side Diff: LayoutTests/fast/dom/TreeWalker/TreeWalker-leak-document.html

Issue 21274004: Fix Document leak from NodeFilter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't print numberOfLiveDocuments when test passed Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <body>
3 <script id='targetJS' type='text/html'>
4 // This test asserts that document doesn't leak when a NodeFilter callba ck referencing the document is created.
5 keepTreeWalker = document.createTreeWalker(document, NodeFilter.SHOW_ELE MENT, function(node) { return NodeFilter.SHOW_ELEMENT; }, false);
6 </script>
7
8 <script src="../../js/resources/js-test-pre.js"></script>
9 <script src="../../dom/resources/leak-check.js"></script>
10 <script>
11 var target = '<script>'+grabScriptText('targetJS')+'<'+'/script>';
12 var tolerance = {'numberOfLiveDocuments': 0};
13
14 doLeakTest(htmlToUrl(target), tolerance);
15 </script>
16 <script src="../../js/resources/js-test-post.js"></script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698