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'); |