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);
8 <script src=
"../../../resources/js-test.js"></script>
9 <script src=
"../../../resources/leak-check.js"></script>
11 var target
= '<script>'+grabScriptText('targetJS')+'<'+'/script>';
12 var tolerance
= {'numberOfLiveDocuments': 0};
14 doLeakTest(htmlToUrl(target
), tolerance
);