Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: LayoutTests/fast/css/visited-link-hang.html

Issue 38293002: Explicit GC of strings to avoid test timeout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on top of CRLF -> LF change. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/css/giant-stylesheet-crash.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/fast/css/giant-stylesheet-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698