Index: third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html b/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html |
index 929a4a1f3a350d73f02e3aa26189f396ddea087a..5bb6d99d4bb2cea5fcfb60ac608d0276fded0df1 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/NodeList/childNodes-reset-cache.html |
@@ -1,5 +1,6 @@ |
<html> |
<body> |
+<script src="../../../resources/gc.js"></script> |
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13514">bug 13514</a>: |
REGRESSION (r20997-21003): Crash in WebCore::Node::Document.</p> |
<div id="elem"><p></p></div> |
@@ -8,16 +9,6 @@ REGRESSION (r20997-21003): Crash in WebCore::Node::Document.</p> |
if (window.testRunner) |
testRunner.dumpAsText(); |
-function gc() |
-{ |
- if (window.GCController) |
- return GCController.collect(); |
- |
- for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect) |
- var s = new String(""); |
- } |
-} |
- |
elem = document.getElementById('elem'); |
elem.childNodes.length; |