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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html

Issue 2847943002: Cleanup LayoutTests that define a function gc(). (Closed)
Patch Set: Fixing Layout Tests Failures Created 3 years, 8 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
Index: third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html b/third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html
index 597c9a4759d14653d723c4d5f2d0c92dd5027c12..117e0b3cc625fca8be68611379f423877064482f 100644
--- a/third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/html/pending-stylesheet-crash.html
@@ -3,6 +3,7 @@
<head id="h">
</head>
<body>
+<script src="../../resources/gc.js"></script>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
@@ -16,16 +17,6 @@ link.parentNode.removeChild(link);
link = null;
</script>
<script>
-function gc() {
- if (window.GCController)
- GCController.collect();
- else {
- // Allocate a sufficient number of objects to force a GC.
- for (var i = 0; i < 10000; i++)
- new Object;
- }
-}
-
gc();
</script>
<p>This test passes if it doesn't crash</p>

Powered by Google App Engine
This is Rietveld 408576698