layout/reftests/table-anonymous-boxes/156888-2.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>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <script language="javascript">
michael@0 5 function toggleRow(rowId)
michael@0 6 {
michael@0 7 var r = document.getElementById(rowId);
michael@0 8 if (r.style.display == "none")
michael@0 9 r.style.display = "inline";
michael@0 10 else
michael@0 11 r.style.display = "none";
michael@0 12 }
michael@0 13
michael@0 14 function doTest() {
michael@0 15 toggleRow('row4');
michael@0 16 document.body.offsetWidth;
michael@0 17 toggleRow('row4');
michael@0 18 document.body.offsetWidth;
michael@0 19 toggleRow('row4');
michael@0 20 document.body.offsetWidth;
michael@0 21 toggleRow('row4');
michael@0 22 document.body.offsetWidth;
michael@0 23 toggleRow('row4');
michael@0 24 document.body.offsetWidth;
michael@0 25 toggleRow('row4');
michael@0 26 document.body.offsetWidth;
michael@0 27 toggleRow('row4');
michael@0 28 document.body.offsetWidth;
michael@0 29 toggleRow('row4');
michael@0 30 document.body.offsetWidth;
michael@0 31 toggleRow('row4');
michael@0 32 }
michael@0 33 </script>
michael@0 34 </head>
michael@0 35 <body onload="doTest()">
michael@0 36 <table border="5">
michael@0 37 <tr>
michael@0 38 <td>Row 1</td>
michael@0 39 </tr>
michael@0 40 <tr>
michael@0 41 <td>Row 2</td>
michael@0 42 </tr>
michael@0 43 <tr>
michael@0 44 <td>Row 3</td>
michael@0 45 </tr>
michael@0 46 <tr id="row4" style="display: none">
michael@0 47 <td>Row 4</td>
michael@0 48 </tr>
michael@0 49 </table>
michael@0 50 </body>
michael@0 51 </html>

mercurial