blob: 1173f20409f3c1543ce42706573a0f2e61d39a51 [file] [log] [blame]
<html>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var iterator = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT, 0, false);
var walker = document.createTreeWalker(document, NodeFilter.SHOW_ELEMENT, 0, false);
// create lots of objects to force a garbage collection
var i = 0;
var s;
while (i < 5000) {
i = i+1.11;
s = s + " ";
}
</script>
</html>
<body>
This tests that garbage collecting a node iterator or a tree walker without a filter doesn't crash.
</body>
</html>