layout/tables/crashtests/284852.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

michael@0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
michael@0 2 <html><head>
michael@0 3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
michael@0 4 <title>Testcase for bug 284852</title>
michael@0 5 <style type="text/css">
michael@0 6
michael@0 7 table {
michael@0 8 border-collapse: collapse;
michael@0 9 border:3px dashed blue;
michael@0 10 }
michael@0 11 td {
michael@0 12 border:3px dotted black;
michael@0 13 }
michael@0 14 </style>
michael@0 15 <script>
michael@0 16 function insertCell(id,rowspan) {
michael@0 17 var tr = document.getElementById(id);
michael@0 18 var td = document.createElement('td');
michael@0 19 td.setAttribute('rowspan',rowspan);
michael@0 20 tr.insertBefore(td,tr.firstChild)
michael@0 21 }
michael@0 22 </script>
michael@0 23 </head>
michael@0 24 <body>
michael@0 25
michael@0 26 <table>
michael@0 27 <tbody>
michael@0 28 <tr><td>g1row1</td></tr>
michael@0 29 <tr><td>g1row2</td></tr>
michael@0 30 <tr><td>g1row3</td></tr>
michael@0 31 </tbody>
michael@0 32 <tbody>
michael@0 33 <tr><td>g2row1</td></tr>
michael@0 34 <tr><td>g2row2</td></tr>
michael@0 35 <tr><td>g2row3</td></tr>
michael@0 36 <tr id="r1"><td rowspan="0">g2row4</td></tr>
michael@0 37 </tbody>
michael@0 38 </table>
michael@0 39
michael@0 40 <script>
michael@0 41 insertCell('r1','0');
michael@0 42 insertCell('r1','0');
michael@0 43 insertCell('r1','0');
michael@0 44 insertCell('r1','0');
michael@0 45 insertCell('r1','0');
michael@0 46 insertCell('r1','0');
michael@0 47 insertCell('r1','0');
michael@0 48 insertCell('r1','0');
michael@0 49 insertCell('r1','0');
michael@0 50 insertCell('r1','0');
michael@0 51 </script>
michael@0 52
michael@0 53 <button onclick="insertCell('r1','0')">insert cell</button>
michael@0 54 <pre>
michael@0 55 Clicking the button above five times or more gives:
michael@0 56
michael@0 57 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
michael@0 58 </pre>
michael@0 59
michael@0 60 <table>
michael@0 61 <tbody>
michael@0 62 <tr><td>g1row1</td></tr>
michael@0 63 <tr><td>g1row2</td></tr>
michael@0 64 <tr><td>g1row3</td></tr>
michael@0 65 </tbody>
michael@0 66 <tbody>
michael@0 67 <tr><td>g2row1</td></tr>
michael@0 68 <tr><td>g2row2</td></tr>
michael@0 69 <tr><td>g2row3</td></tr>
michael@0 70 <tr id="r2"><td rowspan="2">g2row4</td></tr>
michael@0 71 </tbody>
michael@0 72 </table>
michael@0 73
michael@0 74 <script>
michael@0 75 insertCell('r2','2');
michael@0 76 insertCell('r2','2');
michael@0 77 insertCell('r2','2');
michael@0 78 insertCell('r2','2');
michael@0 79 insertCell('r2','2');
michael@0 80 insertCell('r2','2');
michael@0 81 insertCell('r2','2');
michael@0 82 insertCell('r2','2');
michael@0 83 insertCell('r2','2');
michael@0 84 insertCell('r2','2');
michael@0 85 </script>
michael@0 86 <button onclick="insertCell('r2','2')">insert cell</button>
michael@0 87 <pre>
michael@0 88 Clicking the button gives:
michael@0 89
michael@0 90 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
michael@0 91 </pre>
michael@0 92
michael@0 93 <table>
michael@0 94 <tbody>
michael@0 95 <tr><td>g1row1</td></tr>
michael@0 96 <tr><td>g1row2</td></tr>
michael@0 97 <tr><td>g1row3</td></tr>
michael@0 98 </tbody>
michael@0 99 <tbody>
michael@0 100 <tr><td>g2row1</td></tr>
michael@0 101 <tr><td>g2row2</td></tr>
michael@0 102 <tr><td>g2row3</td></tr>
michael@0 103 <tr id="r3"></tr>
michael@0 104 </tbody>
michael@0 105 </table>
michael@0 106
michael@0 107 <script>
michael@0 108 insertCell('r3','0');
michael@0 109 insertCell('r3','0');
michael@0 110 insertCell('r3','0');
michael@0 111 insertCell('r3','0');
michael@0 112 insertCell('r3','0');
michael@0 113 insertCell('r3','0');
michael@0 114 insertCell('r3','0');
michael@0 115 insertCell('r3','0');
michael@0 116 insertCell('r3','0');
michael@0 117 insertCell('r3','0');
michael@0 118 </script>
michael@0 119
michael@0 120 <button onclick="insertCell('r3','0')">insert cell</button>
michael@0 121 <pre>
michael@0 122 Clicking the button the first time gives:
michael@0 123
michael@0 124 ###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
michael@0 125 </pre>
michael@0 126
michael@0 127
michael@0 128
michael@0 129 </body>
michael@0 130 </html>

mercurial