Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / NodeIterator / NodeIterator-leak-document.html
blob41ebbdc8a500c31c8efc03d1bb47cb864a356d0a
1 <html>
2 <body>
3 <script id='targetJS' type='text/html'>
4 // This test asserts that document doesn't leak when a NodeFilter callback referencing the document is created.
5 keepNodeIterator = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT, function(node) { return NodeFilter.SHOW_ELEMENT; }, false);
6 </script>
8 <script src="../../../resources/js-test.js"></script>
9 <script src="../../../resources/leak-check.js"></script>
10 <script>
11 var target = '<script>'+grabScriptText('targetJS')+'<'+'/script>';
12 var tolerance = {'numberOfLiveDocuments': 0};
14 doLeakTest(htmlToUrl(target), tolerance);
15 </script>
16 </body>
17 </html>