Index: LayoutTests/fast/forms/dangling-form-element-crash.html |
=================================================================== |
--- LayoutTests/fast/forms/dangling-form-element-crash.html (revision 78370) |
+++ LayoutTests/fast/forms/dangling-form-element-crash.html (working copy) |
@@ -1,36 +0,0 @@ |
-<html> |
- <script> |
- if (window.layoutTestController) { |
- layoutTestController.dumpAsText(); |
- layoutTestController.waitUntilDone(); |
- } |
- |
- function gc() { |
- if (window.GCController) |
- return GCController.collect(); |
- for (var i = 0; i < 10000; ++i) |
- var s = new String("foo"); |
- } |
- |
- function resetFormOwner() { |
- gc(); |
- var form = document.createElement('form'); |
- form.id = 'foo'; |
- document.body.appendChild(form); |
- document.body.innerHTML += 'PASS'; |
- if (window.layoutTestController) |
- layoutTestController.notifyDone(); |
- } |
- |
- function test() { |
- var div = document.createElement('div'); |
- var input = document.createElement('input'); |
- input.setAttribute('form', 'foo'); |
- div.appendChild(input); |
- setTimeout(resetFormOwner, 0); |
- } |
- </script> |
-<body onload="test()"> |
-<p>Checks dangling form associated elements doesn't cause crash. WebKit should not crash when this page is loaded.</p> |
-</body> |
-</html> |