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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.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/forms/form-associated-element-crash2.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html b/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
index 39d310a2f508185453d9579f4af3c1878f8cacbb..da086473550815c21991a43064975ae3ff5dcf50 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/form-associated-element-crash2.html
@@ -1,20 +1,12 @@
<html>
<head>
+<script src="../../resources/gc.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
-function gc() {
- var array = [];
- for (var i = 0x30000; i--; )
- if (!(Math.round(Math.random() * 20)))
- array = [];
- else
- array.push(new String(Math.random()))
-}
-
function test()
{
var element = document.createElement('input');

Powered by Google App Engine
This is Rietveld 408576698