Add reftests for bug 399636.

This commit is contained in:
L. David Baron 2008-06-02 15:52:25 -07:00
parent a24337f1e8
commit 23d4d9af06
7 changed files with 136 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<html lang="en-US">
<head>
<title>Reftest, bug 399636 (quirks mode, family from CSS)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
/* the first three fonts lack glyphs for P, A, and S */
span { font-family: Symbol, Webdings, Wingdings, serif; }
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<span>PASS</span></p>
</body>
</html>

View File

@ -0,0 +1,19 @@
<html lang="en-US">
<head>
<title>Reftest, bug 399636 (quirks mode, family from HTML)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<font face="Symbol, Webdings, Wingdings, serif">PASS</font></p>
</body>
</html>

View File

@ -0,0 +1,21 @@
<html lang="en-US">
<head>
<title>Reftest, bug 399636</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
span { font-family: serif; }
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<span>PASS</span></p>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<title>Reftest, bug 399636 (standards mode, family from CSS)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
/* the first three fonts lack glyphs for P, A, and S */
span { font-family: Symbol, Webdings, Wingdings, serif; }
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<span>PASS</span></p>
</body>
</html>

View File

@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<title>Reftest, bug 399636 (standards mode, family from HTML)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<font face="Symbol, Webdings, Wingdings, serif">PASS</font></p>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
<head>
<title>Reftest, bug 399636</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
span { font-family: serif; }
/* ensure consistent vertical positioning under variation in
first-choice font */
p { line-height: 50px; font-size: 16px; }
span, font { line-height: 25px; }
</style>
</head>
<body>
<p>&nbsp;<span>PASS</span></p>
</body>
</html>

View File

@ -632,6 +632,12 @@ skip-if(MOZ_WIDGET_TOOLKIT!="windows") == 391045.html 391045-ref.html # windows-
== 399209-2.html 399209-2-ref.html
== 399258-1.html 399258-1-ref.html
== 399384-1.html 399384-1-ref.html
random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 399636-standards-css.html 399636-standards-ref.html # bug 429022
random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 399636-standards-html.html 399636-standards-ref.html # bug 429022
random-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 399636-quirks-css.html 399636-quirks-ref.html # bug 429022
# We can't rely on this test working on platforms other than Windows and
# Mac because they need not have a font called "Symbol".
fails-if(MOZ_WIDGET_TOOLKIT=="windows") fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") random-if(MOZ_WIDGET_TOOLKIT!="cocoa"&&MOZ_WIDGET_TOOLKIT!="windows") != 399636-quirks-html.html 399636-quirks-ref.html # windows failure bug 429017, mac failure bug 429019
== 400081-1.html about:blank
== 400171-1a.html 400171-1-ref.html
== 400171-1b.html 400171-1-ref.html