Added regression tests for printing. r=karnaze a=rickg
git-svn-id: svn://10.0.0.236/trunk@61780 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ce86a4fda0
commit
4123bd43f6
1
mozilla/layout/html/tests/printer/general/file_list.txt
Normal file
1
mozilla/layout/html/tests/printer/general/file_list.txt
Normal file
@ -0,0 +1 @@
|
||||
file:///s|/mozilla/layout/html/tests/printer/general/test0.html
|
||||
16
mozilla/layout/html/tests/printer/general/rtest.bat
Executable file
16
mozilla/layout/html/tests/printer/general/rtest.bat
Executable file
@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
if %1==baseline goto baseline
|
||||
|
||||
:verify
|
||||
if not exist verify mkdir verify
|
||||
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\general\verify\ -rd s:\mozilla\layout\html\tests\printer\general -f s:\mozilla\layout\html\tests\printer\general\file_list.txt
|
||||
goto done
|
||||
|
||||
:baseline
|
||||
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\general\ -f s:\mozilla\layout\html\tests\printer\general\file_list.txt
|
||||
goto done
|
||||
|
||||
:error
|
||||
echo syntax: rtest (baseline verify)
|
||||
|
||||
:done
|
||||
210
mozilla/layout/html/tests/printer/general/test0.html
Normal file
210
mozilla/layout/html/tests/printer/general/test0.html
Normal file
@ -0,0 +1,210 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Example 0</title>
|
||||
<style>
|
||||
a#id.foo:visited:first-line { color: red; }
|
||||
a#id.foo:first-line { color: red; }
|
||||
a#id.foo:visited { color: red; }
|
||||
a#id:first-line { color: red; }
|
||||
a#id:visited { color: red; }
|
||||
a:first-line { color: red; }
|
||||
a:visited { color: red; }
|
||||
a:visited:first-line { color: red; }
|
||||
a:visited:visited { color: red; }
|
||||
a:first-line:visited { color: red; }
|
||||
:first-letter { color: green; }
|
||||
#line:first-line { font-size: 200%; letter-spacing: -.25em; }
|
||||
#letter:first-letter { font-size: 48pt; font-weight: bold; float: left; }
|
||||
</style>
|
||||
<meta name="crc" content=3268488385">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
|
||||
<!-- GOOFY Comment tests... -->
|
||||
<!-- xx -- yy -- zz -->
|
||||
<!-- also interesting --!>
|
||||
<!--------------------->
|
||||
<!-- ####################################################################
|
||||
# #
|
||||
# * Here's another interesting comment problem we encountered #
|
||||
# this came from mozilla.org of all places! "!-- * --" #
|
||||
####################################################################
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<h1>Example 0: Basic HTML Text Styles</h1>
|
||||
|
||||
<P><br></p>
|
||||
|
||||
<h2>Formatted Text</h2>
|
||||
|
||||
<p>
|
||||
This is a basic paragraph with <b>bold</b>, <i>italic</i> and
|
||||
<i><b>bold</b></i><b><i>-italic </i></b>
|
||||
text. It also includes <font color="#FF0000">red</font>,
|
||||
<font color="#00FF00">green</font>
|
||||
and <font color="#0000FF">blue</font> text.
|
||||
It has <s>strikethru</s> and <u>underline</u>.
|
||||
<u> </u>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Text decoration color test:
|
||||
<span style="color: red">
|
||||
red
|
||||
<span style="text-decoration: underline">
|
||||
underline
|
||||
<span style="color: cyan">
|
||||
cyan
|
||||
<span style="text-decoration: line-through">
|
||||
line-through
|
||||
<span style="color: blue">
|
||||
blue
|
||||
<span style="text-decoration: overline">
|
||||
overline
|
||||
<span style="color: black">
|
||||
black
|
||||
</span>
|
||||
overline
|
||||
</span>
|
||||
blue
|
||||
</span>
|
||||
line-through
|
||||
</span>
|
||||
cyan
|
||||
</span>
|
||||
underline
|
||||
</span>
|
||||
red
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>This is a paragraph with font variations: <b><font face="Arial, Helvetica, sans-serif">Bold Arial,</font></b><font face="Arial, Helvetica, sans-serif">
|
||||
<i><font face="Verdana, Arial, Helvetica, sans-serif">Italic Verdana</font>,</i> <font face="courier">COURIER,
|
||||
<font face="Times New Roman, Times, serif">Times New Roman.</font></font></font></p>
|
||||
<p><font size=7>Font size=7, </font><font size=6>Font size=6, </font><font size=5>Font
|
||||
size=5, </font><font size=4>Font size=4, </font><font size=3>Font size=3, </font><font size=2>Font
|
||||
size=2, </font><font size=1>Font size=1, </font><font point-size=24 font-weight=700>Font
|
||||
point-size=24 font-weight=700</font><BR>
|
||||
<SPAN style="font-family: Verdana Bold, Times; font-weight: bold; font-size: 18pt; font-variant: small-caps;">This Text Is Small-caps</SPAN>
|
||||
</P>
|
||||
|
||||
<h2>Text styles</h2>
|
||||
|
||||
<P>
|
||||
<SPAN style="text-transform: capitalize;">
|
||||
this text was capitalized å è
|
||||
</SPAN>
|
||||
<BR>
|
||||
<SPAN style="text-transform: lowercase;">
|
||||
THIS TEXT WAS LOWERCASED Å È
|
||||
</SPAN>
|
||||
<BR>
|
||||
<SPAN style="text-transform: uppercase;">
|
||||
this text was uppercased å è
|
||||
</SPAN>
|
||||
<BR>
|
||||
<SPAN style="letter-spacing: 2em;">
|
||||
Letter spacing set to 2em's.
|
||||
</SPAN>
|
||||
<BR>
|
||||
<SPAN style="word-spacing: 2em;">
|
||||
Word spacing set to 2em's.
|
||||
</SPAN>
|
||||
<BR>
|
||||
<SPAN style="text-transform: capitalize; letter-spacing: 1em; word-spacing: 5em; font-variant: small-caps;">
|
||||
this text is capitalized small-caps with letter spacing set to 1em and
|
||||
the word spacing set to 5em's. enjoy!
|
||||
</SPAN>
|
||||
</P>
|
||||
|
||||
<H2>Pseudo-element tests</H2>
|
||||
|
||||
<P ID=line>
|
||||
This paragraph demonstrates the :first-line pseudo
|
||||
element. The first line of text should use a font twice the size and
|
||||
have the letter spacing set so that the text is jammed together in an
|
||||
unpleasant fashion.
|
||||
</P>
|
||||
|
||||
<P ID=letter>
|
||||
First letter style is really cool. The facility is very powerful because it
|
||||
takes an innocuous looking content model and spices it up dramatically while
|
||||
allowing a backwards compatible answer for older browsers.
|
||||
</P>
|
||||
|
||||
<h2><br>
|
||||
</h2>
|
||||
<h2>Listings</h2>
|
||||
<h3>Bulleted List </h3>
|
||||
<ul>
|
||||
<li>One</li>
|
||||
<li>Two
|
||||
<ul>
|
||||
<li>Apples</li>
|
||||
<li>Oranges</li>
|
||||
<li>Bananas</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Three</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h3>Numbered List </h3>
|
||||
<ol>
|
||||
<li>One</li>
|
||||
<li>Two
|
||||
<ol>
|
||||
<li>Apples</li>
|
||||
<li>Oranges</li>
|
||||
<li>Bananas</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Three</li>
|
||||
</ol>
|
||||
|
||||
<h2>Justified Text</h2>
|
||||
|
||||
<p align=left>
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
This paragraph is aligned <b>left</b>.
|
||||
</p>
|
||||
|
||||
<p align=center>
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
This paragraph is aligned <b>center</b>.
|
||||
</p>
|
||||
|
||||
<p align=right>
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
This paragraph is aligned <b>right</b>.
|
||||
</p>
|
||||
|
||||
<p align=justify>
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
This paragraph is <B>justified</B>.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
85
mozilla/layout/html/tests/printer/general/test1.html
Normal file
85
mozilla/layout/html/tests/printer/general/test1.html
Normal file
@ -0,0 +1,85 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Example 1</title>
|
||||
<style>
|
||||
H1{ color: rgb(128,0,128) }
|
||||
PRE { background-color: rgb(200,200,200) }
|
||||
B {
|
||||
background-color: rgb(128, 128, 255);
|
||||
font-size: large;
|
||||
}
|
||||
I {
|
||||
font-size: larger;
|
||||
}
|
||||
B I {
|
||||
font-size: smaller;
|
||||
}
|
||||
LI B {
|
||||
font-size: .25in;
|
||||
}
|
||||
UL LI {
|
||||
color: green;
|
||||
list-style: square outside url(resource:/res/gear1.gif); //none;
|
||||
}
|
||||
UL UL LI {
|
||||
color: red;
|
||||
}
|
||||
H4 {
|
||||
color: yelow;
|
||||
background-image: url(gear1.gif);
|
||||
background-repeat: repeat;
|
||||
font-size: 150%;
|
||||
}
|
||||
</style>
|
||||
<meta name="crc" content=48969488>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000">
|
||||
<h1>Example 1: CSS HTML Text Styles</h1>
|
||||
<p><br></p>
|
||||
<p>Note -- This document contains the following CSS declarations:</p>
|
||||
<pre>H1 { color: rgb(128,0,128) }
|
||||
PRE { background-color: rgb(200,200,200); }
|
||||
B { background-color: rgb(128, 128, 255);
|
||||
font-size: large; }
|
||||
I { font-size: larger; }
|
||||
B I { font-size: smaller; }
|
||||
LI B { font-size: .25in; }
|
||||
UL LI { color: green;
|
||||
list-style: square outside url(resource:/res/gear1.gif);
|
||||
//none; }
|
||||
UL UL LI { color: red; }
|
||||
H4 { color: yellow;
|
||||
background-image: url(gear1.gif);
|
||||
background-repeat: repeat;
|
||||
font-size: 150%; }
|
||||
</pre>
|
||||
<p><br></p>
|
||||
<p>Here is an example of <b>bold</b>, <i>italic</i> and <b><i>bold-italic</i></b></p>
|
||||
<p><br></p>
|
||||
<p>Some links to test pseudo-classes</p>
|
||||
<p><a href="http://link">link</a></p>
|
||||
<p><a href="http://visited">visited</a></p>
|
||||
<p><a href="http://out-of-date">outofdate</a></p>
|
||||
<p><a href="http://active">active</a></p>
|
||||
<p><a href="http://hover">hover</a></p>
|
||||
<h2>Bulleted List </h2>
|
||||
<ul>
|
||||
<li>One</li>
|
||||
<li>Two
|
||||
<ul>
|
||||
<li>Apples</li>
|
||||
<li>Oranges</li>
|
||||
<li>Bananas</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Three <b>Bold Text</b></li>
|
||||
</ul>
|
||||
<p><br></p>
|
||||
<h4>H3 -- A headline style, with a background image repeated and a font size increase
|
||||
by 150%. H3 -- A headline style, with a background image repeated and a font
|
||||
size increase by 150%. H3 -- A headline style, with a background image repeated
|
||||
and a font size increase by 150%. </h4>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user