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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/detached-doctype.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/dom/DOMImplementation/detached-doctype.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/detached-doctype.html b/third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/detached-doctype.html
index e7a2db4960ef5047e306e323a5ad0f66a4ca4e26..b4185d6e4b99f0544b1685f3f1cf03de49353872 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/detached-doctype.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/detached-doctype.html
@@ -1,14 +1,7 @@
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=26402">bug 26402<a/>: Crashes when using a detached DocumentType node.</p>
<p>PASS if no crash.</p>
+<script src="../../../resources/gc.js"></script>
<SCRIPT>
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++)
- var s = new String("");
-}
if (window.testRunner)
testRunner.dumpAsText();

Powered by Google App Engine
This is Rietveld 408576698