Add bug 370897 crashtest
authorJesse Ruderman <jruderman@gmail.com>
Thu, 16 Oct 2008 14:49:40 -0700
changeset 20549 c87e873bbef98ab8e2509ffe6d9d3d66b1c51219
parent 20548 b7253556900e26a64252f163ee6db897d3e669db
child 20550 1a8fd714a7944b3af0bac1d916097e39ce4f72ee
push id2956
push userjruderman@mozilla.com
push dateThu, 16 Oct 2008 21:50:17 +0000
treeherdermozilla-central@c87e873bbef9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs370897
milestone1.9.1b2pre
Add bug 370897 crashtest
layout/tables/crashtests/370897-1.html
layout/tables/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/tables/crashtests/370897-1.html
@@ -0,0 +1,45 @@
+<html>
+<head>
+<script type="text/javascript">
+var w_inc = 1;
+var h_inc = 1;
+function resizeContainer(id) {
+  var e = document.getElementById(id);
+  var w = e.clientWidth;
+  if (w > 800 && w_inc==1)
+    w_inc=-1;
+  if (w < 100 && w_inc==-1)
+    w_inc=1;
+  e.style.width=(w+w_inc)+'px';
+
+  var h = e.clientHeight;
+  if (h > 800 && h_inc==1)
+    h_inc=-1;
+  if (h < 100 && h_inc==-1)
+    h_inc=1;
+  e.style.height=(h+h_inc)+'px';
+}
+
+function boom() {
+ var table = document.getElementById('table');
+ var newNode = document.createElement('caption');
+ table.appendChild(newNode);
+ resizeContainer('test');
+
+ newNode = document.createElement('caption');
+ table.appendChild(newNode); 
+}
+
+</script>
+<title></title>
+</head>
+
+
+<body onload="boom()">
+
+<div id="test">
+<table id="table" width="100%" height="100%"><tbody><tr><td></td></tr></tbody></table>
+</div>
+
+</body>
+</html>
--- a/layout/tables/crashtests/crashtests.list
+++ b/layout/tables/crashtests/crashtests.list
@@ -20,16 +20,17 @@ load 351328-1.xhtml
 load 351628-1.xhtml
 load 358679-1.xhtml
 load 358871-1.xhtml
 load 364512-1.html
 load 366556-1.xhtml
 load 367673-1.xhtml
 load 368166-1.xhtml
 load 370876-1.html
+load 370897-1.html
 load 373611-1.html
 load 374356-1.html
 load 374819-1.html
 load 374819-2.html
 load 375058-1.xhtml
 load 378240-1.html
 load 379687-1.html
 load 385132-1.xhtml