Index: LayoutTests/fast/css/visited-link-hang.html |
diff --git a/LayoutTests/fast/css/visited-link-hang.html b/LayoutTests/fast/css/visited-link-hang.html |
index cd7d9dabc23aa475fc39ed7765f86233d25fa57c..178d97db0162f279036ab72f50d7ac599c1b068c 100644 |
--- a/LayoutTests/fast/css/visited-link-hang.html |
+++ b/LayoutTests/fast/css/visited-link-hang.html |
@@ -25,6 +25,13 @@ document.getElementById("test1").innerHTML = '<a href="about:test?slashes' + one |
document.getElementById("test2").innerHTML = '<a href="about:test?slashes' + oneMillionSlashesAndDots + '">Link with tons of slashes with dots</a>'; |
document.getElementById("test3").innerHTML = '<a href="about:test?slashes' + oneMillionSlashesAndDoubleDots + '">Link with tons of slashes with double dots</a>'; |
-document.getElementById("result").firstChild.data = "TEST PASSED"; |
+// GC these large strings so that they don't cause the next test to timeout. |
+if (window.GCController) { |
+ oneMillionSlashes = null; |
+ oneMillionSlashesAndDots = null; |
+ oneMillionSlashesAndDoubleDots = null; |
+ GCController.collect(); |
+} |
+document.getElementById("result").firstChild.data = "TEST PASSED"; |
</script> |