layout/tables/crashtests/370897-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <html>
     2 <head>
     3 <script type="text/javascript">
     4 var w_inc = 1;
     5 var h_inc = 1;
     6 function resizeContainer(id) {
     7   var e = document.getElementById(id);
     8   var w = e.clientWidth;
     9   if (w > 800 && w_inc==1)
    10     w_inc=-1;
    11   if (w < 100 && w_inc==-1)
    12     w_inc=1;
    13   e.style.width=(w+w_inc)+'px';
    15   var h = e.clientHeight;
    16   if (h > 800 && h_inc==1)
    17     h_inc=-1;
    18   if (h < 100 && h_inc==-1)
    19     h_inc=1;
    20   e.style.height=(h+h_inc)+'px';
    21 }
    23 function boom() {
    24  var table = document.getElementById('table');
    25  var newNode = document.createElement('caption');
    26  table.appendChild(newNode);
    27  resizeContainer('test');
    29  newNode = document.createElement('caption');
    30  table.appendChild(newNode); 
    31 }
    33 </script>
    34 <title></title>
    35 </head>
    38 <body onload="boom()">
    40 <div id="test">
    41 <table id="table" width="100%" height="100%"><tbody><tr><td></td></tr></tbody></table>
    42 </div>
    44 </body>
    45 </html>

mercurial