Add reftests (bug 310451, bug 398681, bug 407419, bug 409125, bug 429974)
authorJesse Ruderman <jruderman@gmail.com>
Thu, 27 Aug 2009 13:50:58 -0700
changeset 32046 1572bb861865a283ca3367860ea0551db4db1883
parent 32045 b8ce5d6f7d3c510faa611060a998af632f4d781f
child 32047 a55110db11689b2961320e2ae6034ff55e137c62
push idunknown
push userunknown
push dateunknown
bugs310451, 398681, 407419, 409125, 429974
milestone1.9.3a1pre
Add reftests (bug 310451, bug 398681, bug 407419, bug 409125, bug 429974)
layout/reftests/abs-pos/font-size-wrap-ref.html
layout/reftests/abs-pos/font-size-wrap.html
layout/reftests/abs-pos/reftest.list
layout/reftests/bugs/407419-1-ref.html
layout/reftests/bugs/407419-1.html
layout/reftests/bugs/reftest.list
layout/reftests/floats/429974-1-ref.html
layout/reftests/floats/429974-1.html
layout/reftests/floats/reftest.list
layout/reftests/mathml/dynamic-mi-ref.xhtml
layout/reftests/mathml/dynamic-mi.xhtml
layout/reftests/mathml/reftest.list
layout/reftests/reftest.list
layout/reftests/table-anonymous-boxes/dynamic-abs-pos-tbody-ref.html
layout/reftests/table-anonymous-boxes/dynamic-abs-pos-tbody.html
layout/reftests/table-anonymous-boxes/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/abs-pos/font-size-wrap-ref.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<title>Based on testcase #3 for bug 310451</title>
+
+<style type="text/css">
+  body { font-size: 16px;  }
+  div  { position: absolute; border:1px solid black; }
+</style>
+
+<script type="text/javascript">//<![CDATA[
+window.onload = function() {
+	var newSize = '32px';
+	document.body.style.fontSize = newSize;
+}
+
+//]]></script>
+
+</head>
+<body>
+
+<div style="top:40px;">
+	this text should be on one line <b>and not wrap</b>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/abs-pos/font-size-wrap.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="reftest-wait">
+<head>
+<title>Based on testcase #3 for bug 310451</title>
+
+<style type="text/css">
+  body { font-size: 16px;  }
+  div  { position: absolute; border:1px solid black; }
+</style>
+
+<script type="text/javascript">//<![CDATA[
+window.onload = function() {
+	var newSize = '32px';
+	var div = document.getElementById('div');
+	document.body.style.fontSize = newSize;
+	div.style.height = '1px';
+	setTimeout(function() {
+		div.style.height = 'auto';
+		document.documentElement.removeAttribute("class");
+	}, 0);
+}
+
+//]]></script>
+
+</head>
+<body>
+
+<div id="div" style="top:40px;">
+	this text should be on one line <b>and not wrap</b>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/abs-pos/reftest.list
@@ -0,0 +1,1 @@
+== font-size-wrap.html font-size-wrap-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/407419-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+</head>
+<body>
+
+<span style="display: -moz-inline-box" id="s">hello world</span>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/407419-1.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+</head>
+<body onload="document.getElementById('s').firstChild.data = ('hello world');">
+
+<span style="display: -moz-inline-box" id="s"> </span>
+
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -840,16 +840,17 @@ HTTP(..) == 404149-1.xul 404149-1-ref.xu
 == 406568-1.html 406568-1-ref.html
 == 407016-1-a.html 407016-1-ref.html
 == 407016-1-b.html 407016-1-ref.html
 == 407078-1.html 407078-1-ref.html
 == 407095-1.html 407095-1-ref.html
 == 407111-1.html 407111-1-ref.html
 == 407227-1.html 407227-1-ref.html
 == 407243-1.html 407243-1-ref.html
+== 407419-1.html 407419-1-ref.html
 == 407937-1.html 407937-1-ref.html
 == 408493-1.html about:blank
 == 408493-2.html 408493-2-ref.html
 == 408656-1a.html 408656-1-ref.html
 == 408656-1b.html 408656-1-ref.html
 == 408656-1c.html 408656-1-ref.html
 == 408782-1a.html 408782-1-ref.html
 == 408782-1b.html 408782-1-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/floats/429974-1-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+<style type="text/css">
+
+.contain {
+  background: aqua; color: black;
+  height: 10px; margin: 2px 50px;
+}
+
+.fl, .fr { height: 5px; }
+.fl { float: left; width: 56px; }
+.fr { float: right; width: 73px; }
+
+.t { overflow: hidden; background: blue; height: 5px; width: 85px;
+     border-left: 1px solid blue; padding-left: 2px;
+     padding-right: 4px; border-right: 8px solid blue; }
+
+</style>
+
+</head>
+
+<body style="width: 400px">
+
+<div class="contain">
+	<div class="fl" id="p"></div>
+	<div class="fr"></div>
+</div>
+
+<div class="contain">
+	<div class="fl"></div>
+	<div class="t"></div>
+</div>
+
+</body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/floats/429974-1.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+<style type="text/css">
+
+.contain {
+  background: aqua; color: black;
+  height: 10px; margin: 2px 50px;
+}
+
+.fl, .fr { height: 5px; }
+.fl { float: left; width: 56px; }
+.fr { float: right; width: 73px; }
+
+.t { overflow: hidden; background: blue; height: 5px; width: 85px;
+     border-left: 1px solid blue; padding-left: 2px;
+     padding-right: 4px; border-right: 8px solid blue; }
+
+</style>
+
+</head>
+
+<body style="width: 400px" onload="document.getElementById('p').nextSibling.data = ' ';">
+
+<div class="contain">
+	<div class="fl" id="p"></div>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+	<div class="fr"></div>
+</div>
+
+<div class="contain">
+	<div class="fl"></div>
+	<div class="t"></div>
+</div>
+
+</body>
+</html>
\ No newline at end of file
--- a/layout/reftests/floats/reftest.list
+++ b/layout/reftests/floats/reftest.list
@@ -9,8 +9,9 @@ fails == other-float-outside-rule-7-righ
 == float-outside-block-push.html float-outside-block-push-ref.html
 == zero-height-float-base.html zero-height-float-ref.html
 fails == zero-height-float.html zero-height-float-ref.html
 fails == 345369-1.html 345369-1-ref.html
 fails == 345369-2.html 345369-2-ref.html
 == 345369-3.html 345369-3-ref.html
 == 345369-4.html 345369-4-ref.html
 == 345369-5.html 345369-5-ref.html
+== 429974-1.html 429974-1-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/mathml/dynamic-mi-ref.xhtml
@@ -0,0 +1,11 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Reftest for bug 409125</title>
+</head>
+
+<body>
+
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi id="mi">mi</mi></math>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/mathml/dynamic-mi.xhtml
@@ -0,0 +1,11 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Reftest for bug 409125</title>
+</head>
+
+<body onload="document.getElementById('mi').firstChild.data = 'mi';">
+
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mi id="mi"> </mi></math>
+
+</body>
+</html>
--- a/layout/reftests/mathml/reftest.list
+++ b/layout/reftests/mathml/reftest.list
@@ -1,7 +1,8 @@
+== dynamic-mi.xhtml dynamic-mi-ref.xhtml
 == mi-mathvariant-1.xhtml mi-mathvariant-1-ref.xhtml
 == mi-mathvariant-2.xhtml mi-mathvariant-2-ref.xhtml
 == table-width-1.xhtml table-width-1-ref.xhtml
 == overbar-width-1.xhtml overbar-width-1-ref.xhtml
 == underbar-width-1.xhtml underbar-width-1-ref.xhtml
 != non-spacing-accent-1.xhtml non-spacing-accent-1-ref.xhtml
 != stretchy-underbar-1.xhtml stretchy-underbar-1-ref.xhtml 
--- a/layout/reftests/reftest.list
+++ b/layout/reftests/reftest.list
@@ -6,16 +6,19 @@
 # for something to not be in order.
 
 # verify the tests work
 include reftest-sanity/reftest.list
 
 # images (if libpr0n is busted, could result in weird failures in other tests)
 include ../../modules/libpr0n/test/reftest/reftest.list
 
+# relative and absolute positioning
+include abs-pos/reftest.list
+
 # backgrounds/
 include backgrounds/reftest.list
 
 # bidi/
 include bidi/reftest.list
 
 # border-image
 include border-image/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/table-anonymous-boxes/dynamic-abs-pos-tbody-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Reftest for bug 398681</title>
+</head>
+<body>
+<table border=1>
+  <tbody style="position: absolute"><tr><td>1__</td></tr></tbody>
+  <tbody><tr><td>__2</td></tr></tbody>
+</table>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/table-anonymous-boxes/dynamic-abs-pos-tbody.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Reftest for bug 398681</title>
+</head>
+<body onload="document.getElementById('n').style.position = 'absolute';">
+<table border=1>
+  <tbody id="n"><tr><td>1__</td></tr></tbody>
+  <tbody><tr><td>__2</td></tr></tbody>
+</table>
+</body>
+</html>
--- a/layout/reftests/table-anonymous-boxes/reftest.list
+++ b/layout/reftests/table-anonymous-boxes/reftest.list
@@ -50,16 +50,17 @@ fails == 156888-1.html 156888-1-ref.html
 == blocks-divide-tables-2.html 3-tables-ref.html
 == infer-cells-1.html 3-tables-ref.html
 == infer-cells-2.html 3x3-ref.html
 == infer-cells-3.html 3x3-ref.html
 == infer-cells-4.html 3x3-ref.html
 == cols-test-1.html 3x3-cols-ref.html
 == cols-test-2.html 3x3-cols-ref.html
 == cols-test-3.html 3x3-cols-ref.html
+== dynamic-abs-pos-tbody.html dynamic-abs-pos-tbody-ref.html
 == dynamic-removal-1.html 3x3-ref.html
 == dynamic-removal-2.html 3x3-ref.html
 == dynamic-removal-3.html 3x3-ref.html
 == dynamic-removal-4.html 3x3-ref.html
 == dynamic-removal-5.html 3x3-ref.html
 == dynamic-removal-6.html 3x3-ref.html
 == dynamic-removal-7.html 3x3-ref.html
 == dynamic-removal-8.html 3x3-ref.html