mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 465463 - add reftests
This commit is contained in:
parent
2b7d253fff
commit
adae46abbd
54
layout/reftests/font-face/src-list-local-full-quotes.html
Normal file
54
layout/reftests/font-face/src-list-local-full-quotes.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>src local with full names</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 50px;
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
/* use full names */
|
||||
|
||||
@font-face {
|
||||
font-family: test-regular;
|
||||
src: local("Helvetica Neue"), local("Bitstream Vera Sans"), local("Arial");
|
||||
}
|
||||
|
||||
/* use Helvetica on the Mac, since Futura has no bold face on 10.4, 10.5 */
|
||||
@font-face {
|
||||
font-family: test-bold;
|
||||
src: local("Helvetica Neue Bold"), local("Bitstream Vera Sans Bold"), local("Arial Bold");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: test-italic;
|
||||
src: local("Helvetica Neue Italic"), local("Bitstream Vera Sans Oblique"), local("Arial Italic");
|
||||
}
|
||||
|
||||
.regular { font-family: test-regular, serif; }
|
||||
.bold { font-family: test-bold, serif; }
|
||||
.italic { font-family: test-italic, serif; }
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="regular">This should be a sans-serif face</p>
|
||||
|
||||
<p class="bold">This should be a bold sans-serif face</p>
|
||||
|
||||
<p class="italic">This should be an italic sans-serif face</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
38
layout/reftests/font-face/src-list-local-full-ref.html
Normal file
38
layout/reftests/font-face/src-list-local-full-ref.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>src local ref with regular, bold, italic</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 50px;
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
/* use full names */
|
||||
|
||||
p { font-family: Helvetica Neue, Bitstream Vera Sans, Arial, serif; }
|
||||
|
||||
.regular { }
|
||||
.bold { font-weight: bold; }
|
||||
.italic { font-style: italic; }
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="regular">This should be a sans-serif face</p>
|
||||
|
||||
<p class="bold">This should be a bold sans-serif face</p>
|
||||
|
||||
<p class="italic">This should be an italic sans-serif face</p>
|
||||
|
||||
</body>
|
||||
</html>
|
54
layout/reftests/font-face/src-list-local-full.html
Normal file
54
layout/reftests/font-face/src-list-local-full.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>src local with full names</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 50px;
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
/* use full names */
|
||||
|
||||
@font-face {
|
||||
font-family: test-regular;
|
||||
src: local(Helvetica Neue), local(Bitstream Vera Sans), local(Arial);
|
||||
}
|
||||
|
||||
/* use Helvetica on the Mac, since Futura has no bold face on 10.4, 10.5 */
|
||||
@font-face {
|
||||
font-family: test-bold;
|
||||
src: local(Helvetica Neue Bold), local(Bitstream Vera Sans Bold), local(Arial Bold);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: test-italic;
|
||||
src: local(Helvetica Neue Italic), local(Bitstream Vera Sans Oblique), local(Arial Italic);
|
||||
}
|
||||
|
||||
.regular { font-family: test-regular, serif; }
|
||||
.bold { font-family: test-bold, serif; }
|
||||
.italic { font-family: test-italic, serif; }
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="regular">This should be a sans-serif face</p>
|
||||
|
||||
<p class="bold">This should be a bold sans-serif face</p>
|
||||
|
||||
<p class="italic">This should be an italic sans-serif face</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
52
layout/reftests/font-face/src-list-local-ps.html
Normal file
52
layout/reftests/font-face/src-list-local-ps.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>src local with postscript names</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
margin: 50px;
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
/* use full names */
|
||||
|
||||
@font-face {
|
||||
font-family: test-regular;
|
||||
src: local(HelveticaNeue), local(BitstreamVeraSans-Roman), local(ArialMT);
|
||||
}
|
||||
|
||||
/* use Helvetica on the Mac, since Futura has no bold face on 10.4, 10.5 */
|
||||
@font-face {
|
||||
font-family: test-bold;
|
||||
src: local(HelveticaNeue-Bold), local(BitstreamVeraSans-Bold), local(Arial-BoldMT);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: test-italic;
|
||||
src: local(HelveticaNeue-Italic), local(BitstreamVeraSans-Oblique), local(ArialItalicMT);
|
||||
}
|
||||
|
||||
.regular { font-family: test-regular, serif; }
|
||||
.bold { font-family: test-bold, serif; }
|
||||
.italic { font-family: test-italic, serif; }
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="regular">This should be a sans-serif face</p>
|
||||
|
||||
<p class="bold">This should be a bold sans-serif face</p>
|
||||
|
||||
<p class="italic">This should be an italic sans-serif face</p>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user