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

Unified Diff: third_party/WebKit/LayoutTests/fast/js/exec-state-marking.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/js/exec-state-marking.html
diff --git a/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html b/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html
index f3fe9144535826e4b594c00fd6dba6bb640bde4d..77efcbf47e340251b521ad0a832b1fc14cd008e6 100644
--- a/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html
+++ b/third_party/WebKit/LayoutTests/fast/js/exec-state-marking.html
@@ -8,7 +8,7 @@ PASS: You didn't crash.
</pre>
<a id="a"></a>
-
+<script src="../../resources/gc.js"></script>
<script>
function log(s)
{
@@ -33,15 +33,6 @@ FailureObject.prototype.toString = function()
return "FAIL"; // A marker to indicate that an object was collected and then overwritten by a FailureObject.
}
-function gc()
-{
- if (window.GCController)
- GCController.collect();
- else
- for (var i = 0; i < 10000; ++i) // Allocate a sufficient number of objects to force a GC.
- new FailureObject;
-}
-
function gc1()
{
var script = document.createElement("script");

Powered by Google App Engine
This is Rietveld 408576698