зеркало из https://github.com/mozilla/gecko-dev.git
Add reftests (bug 310451, bug 398681, bug 407419, bug 409125, bug 429974)
This commit is contained in:
Родитель
f40ccccb0f
Коммит
0152b9f7c9
|
@ -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>
|
|
@ -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>
|
|
@ -0,0 +1 @@
|
|||
== font-size-wrap.html font-size-wrap-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>
|
|
@ -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>
|
|
@ -845,6 +845,7 @@ HTTP(..) == 404149-1.xul 404149-1-ref.xul # HTTP for fonts directory access
|
|||
== 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
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -14,3 +14,4 @@ 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
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -1,3 +1,4 @@
|
|||
== 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
|
||||
|
|
|
@ -11,6 +11,9 @@ 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
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -55,6 +55,7 @@ fails == 156888-1.html 156888-1-ref.html # bug 484825
|
|||
== 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче