summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html')
-rw-r--r--LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html b/LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html
new file mode 100644
index 0000000..04b79a5
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html
@@ -0,0 +1,28 @@
+<html>
+
+<head>
+<script type="text/javascript">
+
+function test()
+{
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ var tr = document.getElementById('row');
+ tr.insertCell(0).innerHTML = "<td>cell inside table inside cell 0</td>";
+ tr.insertCell(1).innerHTML = "<td>cell inside table inside cell 1</td>";
+}
+
+</script>
+</head>
+
+<body onload="test()">
+
+<p>This tests a particular case of insertCell that was crashing on ebay at the time the test was written.</p>
+
+<p><table><tr id="row"></tr></table></p>
+
+<p>If there was no crash, and you can see text above mentioning cell 1 as well as cell 0, the test passed.</p>
+
+</body>
+
+</html>