Bug 387876 layout reftests. r=roc

This commit is contained in:
dholbert@cs.stanford.edu 2007-09-26 10:41:41 -07:00
parent 720a79c755
commit 82e93efeeb
8 changed files with 131 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<html>
<head>
<title>Bug 387876 Reference Case 1</title>
</head>
<body>
The yellow box should say 'ab'.
<div style="-moz-column-width: 30px;
-moz-column-gap: 0px;
height: 0px;
">
<div id="weirdDiv"
style="background: yellow;">ab</div>
z
</div>
</body>
</html>

View File

@ -0,0 +1,22 @@
<html class="reftest-wait">
<head>
<title>Bug 387876 Test Case 1</title>
<script>
function tweak() {
document.getElementById('weirdDiv').textContent += 'b';
document.documentElement.className = '';
}
</script>
</head>
<body onload="setTimeout(tweak, 10);">
The yellow box should say 'ab'.
<div style="-moz-column-width: 30px;
-moz-column-gap: 0px;
height: 0px;
">
<div id="weirdDiv"
style="background: yellow;">a</div>
z
</div>
</body>
</html>

View File

@ -0,0 +1,13 @@
<html>
<head>
<title>Bug 387876 Reference Case 2</title>
</head>
<body>
<div style="width:100%; height:0px;
-moz-column-width: 20px; -moz-column-gap: 10px;">
<div style="background: lightblue;">a</div>
<p id="weird"
style="background: lightgreen">b cd</p>
</div>
</body>
</html>

View File

@ -0,0 +1,19 @@
<html class="reftest-wait">
<head>
<title>Bug 387876 Test Case 2</title>
<script>
function tweak() {
document.getElementById('weird').textContent += 'd';
document.documentElement.className = '';
}
</script>
</head>
<body onload="setTimeout(tweak, 10);">
<div style="width:100%; height:0px;
-moz-column-width: 20px; -moz-column-gap: 10px;">
<div style="background: lightblue;">a</div>
<p id="weird"
style="background: lightgreen">b c</p>
</div>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<body>
<div style="-moz-column-width: 60px; height: 60px; background: yellow;">
title
<p id="p" style="background: lightgreen">
below
</p>
</div>
</body>
</html>

View File

@ -0,0 +1,19 @@
<html class="reftest-wait">
<head>
<script>
function tweak() {
document.getElementById('p').textContent = 'below';
document.documentElement.className = '';
}
</script>
</head>
<body onload="tweak()">
<div style="-moz-column-width: 60px; height: 60px; background: yellow;">
title
<p id="p" style="background: lightgreen">
line
break
</p>
</div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<html class="reftest-wait">
<head>
<script>
function tweak() {
document.getElementById('p').textContent = 'below';
document.documentElement.className = '';
}
</script>
</head>
<body onload="tweak()">
<div style="-moz-column-width: 60px; height: 60px; background: yellow;">
title
<p id="p" style="background: lightgreen">
line
break
[middle]
line
break
[middle]
line
break
[middle]
line
break
</p>
</div>
</body>
</html>

View File

@ -368,6 +368,10 @@ fails == 386310-1d.html 386310-1-ref.html
== 387201-2.html about:blank # Really an assertion test rather than a rendering test
== 387201-3.html about:blank # Really an assertion test rather than a rendering test
== 387344-1.html 387344-1-ref.html
== 387876-1.html 387876-1-ref.html
== 387876-2.html 387876-2-ref.html
== 387876-3a.html 387876-3-ref.html
== 387876-3b.html 387876-3-ref.html
== 389636-1.html about:blank # assertion test
== 389924-1a.html 389924-1-ref.html
== 389924-1b.html 389924-1-ref.html