layout/reftests/table-anonymous-boxes/315146-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/table-anonymous-boxes/315146-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     1.6 +	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.7 +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" class="reftest-wait">
     1.8 +<head>
     1.9 +	<script type="text/javascript"><![CDATA[
    1.10 +	function DeleteRow(container) {
    1.11 +		if (container.firstChild)
    1.12 +			container.removeChild(container.firstChild);
    1.13 +	}
    1.14 +
    1.15 +	function AddRow(container) {
    1.16 +		var tr = document.createElement("tr");
    1.17 +		var td = document.createElement("td");
    1.18 +		td.appendChild(document.createTextNode("A cell"));
    1.19 +		tr.appendChild(td);
    1.20 +		container.appendChild(tr);
    1.21 +	}
    1.22 +
    1.23 +        function doTest() {
    1.24 +          for (var i = 0; i < 10; ++i) {
    1.25 +            document.body.offsetWidth;
    1.26 +            AddRow(document.getElementById('table'));
    1.27 +            document.body.offsetWidth;
    1.28 +            DeleteRow(document.getElementById('table'));
    1.29 +          }
    1.30 +          document.documentElement.className = '';
    1.31 +        }
    1.32 +	]]></script>
    1.33 +</head>
    1.34 +<body onload="doTest()">
    1.35 +<table id="table" border="5"><tr><td>A cell</td></tr></table>
    1.36 +</body>
    1.37 +</html>

mercurial