diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:52 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:52 -0800 |
commit | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (patch) | |
tree | 11425ea0b299d6fb89c6d3618a22d97d5bf68d0f /WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html | |
parent | 648161bb0edfc3d43db63caed5cc5213bc6cb78f (diff) | |
download | external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.zip external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.gz external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html')
-rw-r--r-- | WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html b/WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html new file mode 100644 index 0000000..298da5a --- /dev/null +++ b/WebCore/manual-tests/remove-form-node-with-radio-buttons-crash.html @@ -0,0 +1,33 @@ +<html>
+<script type="text/javascript">
+
+function load1() {
+ var doc = document.getElementById("container");
+ doc.innerHTML = "<form name=\"gaga\"><input type=\"radio\" name=\"asdf\" id=\"chk\" value=\"A\"> Checkbox 1" +
+ "<input type=\"radio\" name=\"asdf\" value=\"B\"> Checkbox 2";
+ document.getElementById("chk").checked = true;
+}
+
+function load2() {
+ var doc = document.getElementById("container");
+ doc.innerHTML = "hello, world";
+}
+
+var ctr = 0;
+
+function runTest() {
+ if (ctr % 2 == 0) {
+ load1();
+ } else {
+ load2();
+ }
+ ctr++;
+ setTimeout("runTest()", 10);
+}
+</script>
+<body>
+<div>This is a test for http://bugs.webkit.org/show_bug.cgi?id=12938 - to test this, press the "Run Test" button and wait for a couple of minutes - the browser should not crash.</div>
+<input type="button" onclick="runTest()" value="Run Test">
+<div id="container"/>
+
+</body></html>
|