Commit c7c29265 authored by andersca's avatar andersca

Reviewed by Darin.

        Add tests for crash when garbage collecting node iterators and tree walkers
        without a node filter.
        
        * fast/dom/node-filter-gc-expected.txt: Added.
        * fast/dom/node-filter-gc.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8f4e862d
2006-11-18 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
Add tests for crash when garbage collecting node iterators and tree walkers
without a node filter.
* fast/dom/node-filter-gc-expected.txt: Added.
* fast/dom/node-filter-gc.html: Added.
2006-11-18 Rob Buis <buis@kde.org>
Reviewed by Maciej.
This tests that garbage collecting a node iterator or a tree walker without a filter doesn't crash.
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment