Update printing regression tests. r=McCluskey

This commit is contained in:
dcone%netscape.com 2000-06-08 13:45:15 +00:00
Родитель 1da40e66ac
Коммит 24697c622a
15 изменённых файлов: 1087 добавлений и 14 удалений

Двоичные данные
layout/html/tests/printer/general/Anieyes.gif Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 13 KiB

Просмотреть файл

@ -1 +1,6 @@
file:///s|/mozilla/layout/html/tests/printer/general/test0.html
file:///s|/mozilla/layout/html/tests/printer/general/test1.html
file:///s|/mozilla/layout/html/tests/printer/general/test2.html
file:///s|/mozilla/layout/html/tests/printer/general/test3.html

Двоичные данные
layout/html/tests/printer/general/raptor.jpg Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 48 KiB

Просмотреть файл

@ -1,13 +1,23 @@
@echo off
if %1==baseline goto baseline
if %1==verify goto verify
if %1==printall goto printall
goto done
:printall
if not exist verify mkdir verify
echo "PRINTING TESTS"
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 2 -o s:\mozilla\layout\html\tests\printer\general\verify\ -f s:\mozilla\layout\html\tests\printer\general\file_list.txt -d 5
goto done
: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
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 -d 5
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
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 -d 5
goto done
:error

Просмотреть файл

@ -19,7 +19,7 @@ LI B {
}
UL LI {
color: green;
list-style: square outside url(resource:/res/gear1.gif); //none;
list-style: square outside url(resource:/res/samples/gear1.gif); //none;
}
UL UL LI {
color: red;

Просмотреть файл

@ -0,0 +1,41 @@
<html>
<head>
<title>Example 2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
PRE {
background-image: url(gear1.gif);
background-repeat: repeat;
}
</style>
<meta name="crc" content=2304870356>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1>Example 2: HTML Images</h1>
<h2>Images</h2>
<h3>JPEGs:</h3>
<p><img src="raptor.jpg" align=left>This is some text to show how a paragraph
would flow around an image. This is some text to show how a paragraph would
flow around an image. This is some text to show how a paragraph would flow around
an image. </p>
<p>This is some text to show how a paragraph would flow around an image. This
is some text to show how a paragraph would flow around an image. This is some
text to show how a paragraph would flow around an image. This is some text to
show how a paragraph would flow around an image. This is some text to show how
a paragraph would flow around an image. </p>
<h3>Animated GIFs:</h3>
<h3><img src="Anieyes.gif" width="72" height="37"></h3>
<h3>Background Images:</h3>
<pre>This is a preformatted paragraph with a animated background image.
This is a preformatted paragraph with a animated background image.
This is a preformatted paragraph with a animated background image.
This is a preformatted paragraph with a animated background image.
This is a preformatted paragraph with a animated background image.
</pre>
</body>
</html>

Просмотреть файл

@ -0,0 +1,126 @@
<html>
<head>
<title>Example 3</title>
<meta name="crc" content=2849229639>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1>Example 3: Basic Tables</h1>
<h2>Simple table, 75% width, border=1</h2>
<table border="1" width="75%">
<tr>
<td bgcolor=blue>cell bg</td>
<td>Two</td>
<td>Three</td>
</tr>
<tr>
<td align=left>left</td>
<td align=center>center</td>
<td align=right>right</td>
</tr>
<tr bgcolor=yellow>
<td height=50>row bg</td>
<td valign=top>top</td>
<td valign=bottom>bottom</td>
</tr>
</table>
<h2>Row Span, auto width table, border=5</h2>
<table border=5>
<tr>
<td rowspan=2 >c0r[0-1] Data 1 span=2 rows</td>
<td >c0r0</td>
<td >c1r0</td>
</tr>
<tr>
<td >c0r1</td>
<td >c1r1</td>
</tr>
<tr>
<td rowspan=5 background=bg.jpg>c0r[2-6],Data 2 span=5 rows</td>
<td >c0r2</td>
<td >c1r2</td>
</tr>
<tr>
<td >c0r3</td>
<td >c1r3</td>
</tr>
<tr>
<td >c0r4</td>
<td >c1r4</td>
</tr>
<tr>
<td >c0r5</td>
<td >c1r5</td>
</tr>
<tr>
<td >c0r6</td>
<td >c1r6</td>
</tr>
<tr>
<td rowspan=3 >c0r[7-9] span=3 rows</td>
<td >c0r7</td>
<td >c1r7</td>
</tr>
<tr>
<td >c0r8</td>
<td >c1r8</td>
</tr>
<tr>
<td >c0r9</td>
<td >c1r9</td>
</tr>
</table>
<h2>Col Span auto width table</h2>
<table border >
<tr>
<td colspan=8>r0c[0-7], span=8</td>
<td colspan=10>r0col[8-17], span=10 cols</td>
</tr>
<tr>
<td colspan=3>r1c[0-2], span=3</td>
<td colspan=5>r1c[3-7], span=5</td>
<td colspan=7>r1c[8-14], span=7</td>
<td colspan=3>r1c[15-17], span=3</td>
</tr>
<tr>
<td >r2c0</td>
<td >r2c1</td>
<td >r2c3</td>
<td >r2c4</td>
<td >r2c5</td>
<td >r2c6</td>
<td >r2c7</td>
<td >r2c8</td>
<td >r2c9</td>
<td >r2c10</td>
<td >r2c11</td>
<td >r2c12</td>
<td >r2c13</td>
<td >r2c14</td>
<td >r2c15</td>
<td >r2c16</td>
<td >r2c17</td>
<td >r2c18</td>
</tr>
</table>
<h2>Row and Col Span</h2>
<table border >
<tr>
<td colspan=2 rowspan=2>r[0-2]c[0-1]</td>
<td>r0c2</td>
<td>r0c3</td>
</tr>
<tr>
<td>r1c2</td>
<td>r1c3</td>
</tr>
<tr>
<td>r2c0</td>
<td>r2c1</td>
<td>r2c2</td>
<td>r2c3</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,335 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.09 [en] (WinNT; U) [Netscape]">
<TITLE>test4</TITLE>
<STYLE>
BODY { font-size: 12pt; background-image: url(bg.jpg); }
</STYLE>
<meta name="crc" content=250397440>
</HEAD>
<BODY>
<H1>
Example 4: Some simple tables.</H1>
<TABLE BORDER >
<TR>
<TH BACKGROUND="rock_gra.gif">Color&nbsp;</TH>
<TH BACKGROUND="rock_gra.gif">Meaning&nbsp;</TH>
</TR>
<TR>
<TD BGCOLOR="#90EE90">lightgreen</TD>
<TD>Light green is used on cells that have a colspan</TD>
</TR>
<TR>
<TD BGCOLOR="#F0E68C">khaki</TD>
<TD>Khaki is used on cells that have a rowspan</TD>
</TR>
<TR>
<TD BGCOLOR="#D3D3D3">lightgrey</TD>
<TD>Light grey is used on cells that have a rowspan <B>and</B> a colspan</TD>
</TR>
</TABLE>
<br>
&nbsp;
<TABLE BORDER WIDTH="100%" >
<CAPTION>Table 1 has this caption at the top.&nbsp; It is defined to be 100%
of it's parent's width.</CAPTION>
<TR>
<TD COLSPAN="2" BGCOLOR="#90EE90">Cell</TD>
<TD>Stuff to test out table cell layout. This should be long enough.</TD>
</TR>
<TR>
<TD>Cell</TD>
<TD COLSPAN="2" BGCOLOR="#90EE90">Stuff to test out table cell layout.
This should be long enough.</TD>
</TR>
<TR>
<TD>Cell</TD>
<TD>Stuff to test out table cell layout. This should be long enough.</TD>
<TD>Cell</TD>
</TR>
</TABLE>
<br>
&nbsp;
<TABLE BORDER >
<CAPTION>Table 2 has auto-width (no width param specified.)</CAPTION>
<TR>
<TD>Cell</TD>
<TD COLSPAN="2" ROWSPAN="2" BGCOLOR="#D3D3D3">Stuff to test out table cell
layout. This should be long enough.</TD>
</TR>
<TR>
<TD>Cell</TD>
</TR>
<TR>
<TD>Cell</TD>
<TD>Stuff to test out table cell layout. This should be long enough.</TD>
<TD>more text</TD>
</TR>
</TABLE>
&nbsp;
<TABLE BORDER COLS=3 >
<CAPTION>Table 3 is the same as Table 2, but with equal column widths.&nbsp;</CAPTION>
<TR>
<TD>Cell</TD>
<TD COLSPAN="2" ROWSPAN="2" BGCOLOR="#D3D3D3">Stuff to test out table cell
layout. This should be long enough.</TD>
</TR>
<TR>
<TD>Cell</TD>
</TR>
<TR>
<TD>Cell</TD>
<TD>Stuff to test out table cell layout. This should be long enough.</TD>
<TD>more text</TD>
</TR>
</TABLE><br>
&nbsp;
<table cellpadding=2 style="border-collapse:collapse">
<CAPTION ALIGN=BOTTOM>Table 4 has this bottom caption. The table has specified
column widths and collapsing borders.</CAPTION>
<colgroup>
<col width=90 style="border-left: 2px solid black; border-right:2px dashed blue">
<col width=80 style="border-right:1px solid red">
<col width=80 style="border-right:2px solid black">
</colgroup>
<thead style="border-bottom: 6px solid black">
<tr style="border: 2px solid black;">
<th style="border-right: hidden">Player</th>
<th style="border-right: hidden">Ranking</th>
<th>Record</th>
</tr>
</thead>
<tbody>
<tr style="border: 2px solid black">
<td>Steve Clark</td>
<td align=center>1</td>
<td align=center>77-0</td>
</tr>
<tr style="border: 2px solid black">
<td>Cliff Swain</td>
<td align=center>2</td>
<td align=center>67-10</td>
</tr>
<tr style="border: 2px solid black">
<td>Marty Hogan</td>
<td align=center>3</td>
<td align=center>57-15</td>
</tr>
</tbody>
</TABLE>
<BR>
<table>
<CAPTION ALIGN=BOTTOM>Table 5 has a scrolling tbody.</CAPTION>
<thead>
<tr><td colspan=2 style="font-size: 8pt; font-weight: bold">HEADER
</thead>
<tbody style="overflow: auto; height: 200px; border: 1px solid black">
<tr><td>cell-00<td>cell-01<td>cell-02<td>cell-03</tr>
<tr><td>cell-10<td>cell-11<td>cell-12<td>cell-13</tr>
<tr><td>cell-20<td>cell-21<td>cell-22<td>cell-23</tr>
<tr><td>cell-30<td>cell-31<td>cell-32<td>cell-33</tr>
<tr><td>cell-40<td>cell-41<td>cell-42<td>cell-43</tr>
<tr><td>cell-50<td>cell-51<td>cell-52<td>cell-53</tr>
<tr><td>cell-60<td>cell-61<td>cell-62<td>cell-63</tr>
<tr><td>cell-70<td>cell-71<td>cell-72<td>cell-73</tr>
<tr><td>cell-80<td>cell-81<td>cell-82<td>cell-83</tr>
<tr><td>cell-90<td>cell-91<td>cell-92<td>cell-93</tr>
<tr><td>cell-a0<td>cell-a1<td>cell-a2<td>cell-a3</tr>
<tr><td>cell-b0<td>cell-b1<td>cell-b2<td>cell-b3</tr>
<tr><td>cell-c0<td>cell-c1<td>cell-c2<td>cell-c3</tr>
<tr><td>cell-d0<td>cell-d1<td>cell-d2<td>cell-d3</tr>
<tr><td>cell-e0<td>cell-e1<td>cell-e2<td>cell-e3</tr>
<tr><td>cell-f0<td>cell-f1<td>cell-f2<td>cell-f3</tr>
</tbody>
<tfoot>
<tr><td colspan=2 style="font-size: 8pt; font-weight: bold">FOOTER
</tfoot>
<CAPTION ALIGN=BOTTOM>Table 5 has a scrolling tbody.</CAPTION>
</table>
<BR>
This is a table formed from a list with display of table-row and
list items with display of table-cell.
<UL style="display: table-row; background-color:orange;">
<LI style="display: table-cell; background-color:orange;">ONE</LI>
<LI style="display: table-cell; background-color:orange;">TWO</LI>
<LI style="display: table-cell; background-color:orange;">THREE</LI>
<LI style="display: table-cell; background-color:orange;">FOUR</LI>
<LI style="display: table-cell; background-color:orange;">FIVE</LI>
</UL>
<BR>
This is a table formed from a list with display of table-row-group and
list items with display of table-cell.
<BR>
<UL style="display:table-row-group;">
<LI style="display:table-cell; background-color:orange;">ONE</LI>
<LI style="display:table-cell; background-color:orange;">TWO</LI>
<LI style="display:table-cell; background-color:orange;">THREE</LI>
<LI style="display:table-cell; background-color:orange;">FOUR</LI>
<LI style="display:table-cell; background-color:orange;">FIVE</LI>
<LI style="display:table-cell; background-color:orange;">SIX</LI>
</UL>
<BR>
This is like the previous table plus the list's overflow property set
<UL style="display:table-row-group; overflow:auto; height: 50px;">
<LI style="display:table-cell; background-color:orange;">ONE</LI>
<LI style="display:table-cell; background-color:orange;">TWO</LI>
<LI style="display:table-cell; background-color:orange;">THREE</LI>
<LI style="display:table-cell; background-color:orange;">FOUR</LI>
<LI style="display:table-cell; background-color:orange;">FIVE</LI>
<LI style="display:table-cell; background-color:orange;">SIX</LI>
</UL>
<BR>
<P> The following table will have its rows and columns in red collapsed
<BR>
<table border=1 style="background-color:orange;">
<caption><b>before</b></caption>
<colgroup>
<col>
<col>
<col>
</colgroup>
<tr><td>C11<td style="background-color:red;">C12<td>C13 large
<tr style="background-color:red;"><td>C21<td>C22<td>C23
<tr><td>C31<td style="background-color:red;">C32<td>C33
</table>
<BR>
<table border=1 style="background-color:orange;">
<caption><b>after</b></caption>
<colgroup>
<col>
<col style="visibility:collapse;">
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13 large
<tr style="visibility:collapse;"><td>C21<td>C22<td>C23
<tr><td>C31<td>C32<td>C33
</table>
<P> The following table will have its 2nd row and 2nd col collapsed. A window resize may be necessary to see it properly.
<BR>
<table cellspacing=0 border=1 style="background-color:orange;">
<caption><b>before</b></caption>
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<table cellspacing=0 border=1 style="background-color:orange;">
<caption><b>after</b></caption>
<colgroup>
<col>
<col style="visibility:collapse;">
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr style="visibility:collapse;"><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<P> The following table will have its 1st row group collapsed (rows 1 and 2)
<BR>
<table cellspacing=0 border=1 style="background-color:orange;">
<caption><b>before</b></caption>
<tbody style="background-color:red;">
<tr><td>C11<td>C12<td>C13<td>C14
<tr><td>C21<td>C22<td>C23<td>C24
</tbody>
<tbody>
<tr><td>C31<td>C32<td>C33<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<BR>
<table cellspacing=0 border=1 style="background-color:orange;">
<caption><b>after</b></caption>
<tbody style="visibility:collapse;">
<tr><td>C11<td>C12<td>C13<td>C14
<tr><td>C21<td>C22<td>C23<td>C24
</tbody>
<tbody>
<tr><td>C31<td>C32<td>C33<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<BR>
<P> The following table is similar to a previous table except that the direction is right-to-left.
It will have its 2nd row and 2nd col collapsed. A window resize may be necessary to see it properly.
<BR>
<table dir=rtl cellspacing=0 border=1 style="background-color:orange;">
<caption><b>before</b></caption>
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<table dir=rtl cellspacing=0 border=1 style="background-color:orange;">
<caption><b>after</b></caption>
<colgroup>
<col>
<col style="visibility:collapse;">
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr style="visibility:collapse;"><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
</BODY>
</HTML>

Просмотреть файл

@ -0,0 +1,199 @@
<html>
<head>
<style>
SPAN.peter { font-family: "monospace"; }
SPAN.seven { font-size: xx-large; }
SPAN.six { font-size: x-large; }
SPAN.five { font-size: large; }
SPAN.four { font-size: medium; }
SPAN.three { font-size: small; }
SPAN.two { font-size: x-small; }
SPAN.one { font-size: xx-small; }
/*H1, H2, H3, H4, H5, H6 { font-weight: normal; }*/
</style>
<meta name="crc" content=2569310536>
</head>
<body text="#00FF00" bgcolor="#ffffff">
<font size=5>this is size five
<font point-size=12>this is point-size 12
<font size=7>this is size seven
</font>
</font>
</font>
<B><font size=7>heading<font size=7>heading</font><span class="seven">heading</span><small>heading</small><big>heading</big></font></B>
<H1>heading<font size=6>heading</font><span class="six">heading</span><small>heading</small><big>heading</big></H1>
<H2>heading<font size=5>heading</font><span class="five">heading</span><small>heading</small><big>heading</big></H2>
<H3>heading<font size=4>heading</font><span class="four">heading</span><small>heading</small><big>heading</big></H3>
<H4>heading<font size=3>heading</font><span class="three">heading</span><small>heading</small><big>heading</big></H4>
<H5>heading<font size=2>heading</font><span class="two">heading</span><small>heading</small><big>heading</big></H5>
<H6>heading<font size=1>heading</font><span class="one">heading</span><small>heading</small><big>heading</big></H6>
<form>
<h3>Unvarnished</h3>
<strike>
<P>plain text
<P>more plain text Reset SUBMIT
<input type=radio name=group1> radio1
<input type=reset name=reset id=input2 value="Reset">
<input type=submit id=input1 name=submit value="SUBMIT">
<input type=file size=20 name=file value=myfile>
<textarea name=a rows=1 cols=12 value="a textarea">a textarea</textarea>
<select name=select02 id=select1 size=4 multiple>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
<select name=select01 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
<select name=select03 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
<pre>this is pre</pre> this is not pre
</strike>
<h3>Font size=3 color=#ff0000 face=desdemona, arial, strike</h3>
<font size=3 color="#ff0000" face="desdemona, arial"><strike>
<P>plain text
<P>more plain text Reset SUBMIT
<input type=radio name=group1> radio1
<input type=reset name=reset id=input2 value="Reset">
<input type=submit id=input1 name=submit value="SUBMIT">
<input type=file size=20 name=file value=myfile>
<textarea name=a rows=1 cols=12 value="a textarea">a textarea</textarea>
<select name=select12 id=select1 size=4 multiple>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
<select name=select11 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
<select name=select13 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
<pre>this is pre</pre> this is not pre
</strike>
</font>
<h3>font size=2</h3>
<font size=2>
<P>plain text
<P>more plain text Reset SUBMIT
<input type=radio name=group1> radio1
<input type=reset name=reset id=input2 value="Reset">
<input type=submit id=input1 name=submit value="SUBMIT">
<input type=file size=20 name=file value=myfile>
<textarea name=a rows=1 cols=12 value="a textarea">a textarea</textarea>
<select name=select22 id=select1 size=4 multiple>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
<select name=select21 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
<select name=select23 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
<pre>this is pre</pre> this is not pre
</font>
<h3>font face=Arial</h3>
<font face="Arial">
<P>plain text
<P>more plain text Reset SUBMIT
<input type=radio name=group1> radio1
<input type=reset name=reset id=input2 value="Reset">
<input type=submit id=input1 name=submit value="SUBMIT">
<input type=file size=20 name=file value=myfile>
<textarea name=a rows=1 cols=12 value="a textarea">a textarea</textarea>
<select name=select32 id=select1 size=4 multiple>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
<select name=select31 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
<select name=select33 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
<pre>this is pre</pre> this is not pre
</font>
<h3>font point-size=18</h3>
<font point-size=18>
<P>plain text
<P>more plain text Reset SUBMIT
<input type=radio name=group1> radio1
<input type=reset name=reset id=input2 value="Reset">
<input type=submit id=input1 name=submit value="SUBMIT">
<input type=file size=20 name=file value=myfile>
<textarea name=a rows=1 cols=12 value="a textarea">a textarea</textarea>
<select name=select42 id=select1 size=4 multiple>
<option>option 1</option>
<option>option 2</option>
<option selected>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select>
<select name=select41 size=2>
<option selected>option 1</option>
<option>option 2</option>
</select>
<select name=select43 size=1>
<option selected>option 1</option>
<option>option 2</option>
</select>
<pre>this is pre</pre> this is not pre
</font>
<pre>
this is pre text
</pre>
this is<span class=peter>peter text</span>
</form>
<small>
<pre>
this is small pre text
</pre>
</small>
<font size=7 color="#0000ff">
pre table
<table>
<caption>this is the caption</caption>
<td>this is <font size=5>the cell</td>
this is also caption
<td>cell two
</table>
</font>
</body>
</html>

Просмотреть файл

@ -0,0 +1,335 @@
<html>
<head>
<title>Test 6</title>
<style>
PRE { color:red; }
</style>
<meta name="crc" content=1567940029>
</head>
<body>
<h1>Example 6: Table Stress Test</h1>
<PRE>Resize document for maximum effect</PRE>
<br>
<h2>Auto-width tables with spans nested 8 levels deep</h2>
<table border=1 bgcolor=red>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=lightblue>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=lightgreen>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=orange>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=red>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=lightblue>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2><table border=1 bgcolor=lightgreen>
<TR><TD>Cell</TD><TD COLSPAN=2 ROWSPAN=2> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
</TD></TR>
<TR><TD>Cell</TD></TR>
<TR><TD>Cell</TD><TD> Cell, and stuff to test out table cell layout. This should be long enough for testing.</TD><TD>Cell</TD></TR>
</table>
<br>
<h2>100% width tables nested 6 levels deep</h2>
<TABLE BORDER WIDTH="100%" BGCOLOR=yellow >
<TR>
<TD>Cell one</TD>
<TD>Cell2</TD>
<TD>Cell 3</TD>
</TR>
<TR>
<TD>Cell 4</TD>
<TD>Cell 5</TD>
<TD>Cell 6</TD>
</TR>
<TR>
<TD>
<TABLE WIDTH="100%" BGCOLOR=lightgrey >
<TR>
<TD>1</TD>
<TD>2</TD>
<TD>3</TD>
</TR>
<TR>
<TD>4</TD>
<TD>
<TABLE BORDER WIDTH="100%" BGCOLOR=lightblue >
<TR>
<TD>1</TD>
<TD>
<TABLE BORDER WIDTH="100%" BGCOLOR=red >
<TR>
<TD>1</TD>
<TD>2</TD>
<TD>3</TD>
<TD>4</TD>
<TD>5</TD>
</TR>
<TR>
<TD>6</TD>
<TD>7</TD>
<TD>
<TABLE BORDER WIDTH="100%" BGCOLOR=green >
<TR>
<TD>a</TD>
<TD>b</TD>
<TD>c</TD>
<TD>d</TD>
<TD>e</TD>
</TR>
<TR>
<TD>f</TD>
<TD>g</TD>
<TD>h</TD>
<TD>i</TD>
<TD>j</TD>
</TR>
<TR>
<TD>k</TD>
<TD>l</TD>
<TD>
<TABLE BORDER WIDTH="100%" BGCOLOR=purple >
<TR>
<TD>a</TD>
<TD>b</TD>
<TD>c</TD>
<TD>d</TD>
<TD>e</TD>
</TR>
<TR>
<TD>f</TD>
<TD>g</TD>
<TD>h</TD>
<TD>i</TD>
<TD>j</TD>
</TR>
<TR>
<TD>k</TD>
<TD>l</TD>
<TD>
<TABLE BORDER WIDTH="100%" BGCOLOR=orange >
<TR>
<TD>a</TD>
<TD>b</TD>
<TD>c</TD>
<TD>d</TD>
<TD>e</TD>
</TR>
<TR>
<TD>f</TD>
<TD>g</TD>
<TD>h</TD>
<TD>i</TD>
<TD>j</TD>
</TR>
<TR>
<TD>k</TD>
<TD>l</TD>
<TD>m</TD>
<TD>n</TD>
<TD>o</TD>
</TR>
<TR>
<TD>p</TD>
<TD>q</TD>
<TD>r</TD>
<TD>s</TD>
<TD>t</TD>
</TR>
<TR>
<TD>u</TD>
<TD>v</TD>
<TD>w</TD>
<TD>x</TD>
<TD>y</TD>
</TR>
</TABLE>
&nbsp;</TD>
<TD>n</TD>
<TD>o</TD>
</TR>
<TR>
<TD>p</TD>
<TD>q</TD>
<TD>r</TD>
<TD>s</TD>
<TD>t</TD>
</TR>
<TR>
<TD>u</TD>
<TD>v</TD>
<TD>w</TD>
<TD>x</TD>
<TD>y</TD>
</TR>
</TABLE>
&nbsp;</TD>
<TD>n</TD>
<TD>o</TD>
</TR>
<TR>
<TD>p</TD>
<TD>q</TD>
<TD>r</TD>
<TD>s</TD>
<TD>t</TD>
</TR>
<TR>
<TD>u</TD>
<TD>v</TD>
<TD>w</TD>
<TD>x</TD>
<TD>y</TD>
</TR>
</TABLE>
&nbsp;</TD>
<TD>9</TD><TD>0</TD>
</TR>
<TR>
<TD>a</TD><TD>b</TD><TD>c</TD><TD>d</TD><TD>e</TD>
</TR>
<TR>
<TD>f</TD><TD>g</TD><TD>h</TD><TD>i</TD><TD>j</TD>
</TR>
<TR>
<TD>k</TD><TD>l</TD><TD>m</TD><TD>n</TD><TD>o</TD>
</TR>
</TABLE>
&nbsp;</TD><TD>3</TD>
</TR>
<TR>
<TD>4</TD><TD>5</TD><TD>6</TD>
</TR>
<TR>
<TD>7</TD><TD>8</TD><TD>9</TD>
</TR>
</TABLE>
&nbsp;</TD><TD>6</TD>
</TR>
<TR>
<TD>7</TD><TD>8</TD><TD>9</TD>
</TR>
</TABLE>
&nbsp;</TD><TD>8</TD><TD>9</TD>
</TR>
</TABLE>
</body>
</html>

Просмотреть файл

@ -1,3 +1,4 @@
file:///s|/mozilla/layout/html/tests/printer/images/imagejpg.html
file:///s|/mozilla/layout/html/tests/printer/images/imagegif.html
file:///s|/mozilla/layout/html/tests/printer/images/test2.html
file:///s|/mozilla/layout/html/tests/printer/images/test2.html

Просмотреть файл

@ -1,13 +1,23 @@
@echo off
if %1==baseline goto baseline
if %1==verify goto verify
if %1==printall goto printall
goto done
:printall
if not exist verify mkdir verify
echo "PRINTING TESTS"
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 2 -o s:\mozilla\layout\html\tests\printer\images\verify\ -f s:\mozilla\layout\html\tests\printer\images\file_list.txt -d 5
goto done
:verify
if not exist verify mkdir verify
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\images\verify\ -rd s:\mozilla\layout\html\tests\printer\images -f s:\mozilla\layout\html\tests\printer\images\file_list.txt
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\images\verify\ -rd s:\mozilla\layout\html\tests\printer\images -f s:\mozilla\layout\html\tests\printer\images\file_list.txt -d 5
goto done
:baseline
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\images\ -f s:\mozilla\layout\html\tests\printer\images\file_list.txt
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\images\ -f s:\mozilla\layout\html\tests\printer\images\file_list.txt -d 5
goto done
:error

Просмотреть файл

@ -1,13 +1,14 @@
@echo off
cd general
call rtest.bat %1
cd..
cd table
call rtest.bat %1
cd..
cd images
call rtest.bat %1
cd..
rem cd images
rem call rtest.bat %1
rem cd..
cd general
call rtest.bat %1
cd..

Просмотреть файл

@ -1,3 +1,2 @@
file:///s|/mozilla/layout/html/tests/printer/table/table1.html
file:///s|/mozilla/layout/html/tests/printer/table/table2.html
file:///s|/mozilla/layout/html/tests/printer/table/test3.html

Просмотреть файл

@ -1,13 +1,24 @@
@echo off
if %1==baseline goto baseline
if %1==verify goto verify
if %1==printall goto printall
goto done
:printall
if not exist verify mkdir verify
echo "PRINTING TESTS"
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 2 -o s:\mozilla\layout\html\tests\printer\table\verify\ -f s:\mozilla\layout\html\tests\printer\table\file_list.txt -d 5
goto done
:verify
if not exist verify mkdir verify
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\table\verify\ -rd s:\mozilla\layout\html\tests\printer\table -f s:\mozilla\layout\html\tests\printer\table\file_list.txt
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\table\verify\ -rd s:\mozilla\layout\html\tests\printer\table -f s:\mozilla\layout\html\tests\printer\table\file_list.txt -d 5
goto done
:baseline
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\table\ -f s:\mozilla\layout\html\tests\printer\table\file_list.txt
s:\mozilla\dist\win32_d.obj\bin\viewer -Prt 1 -o s:\mozilla\layout\html\tests\printer\table\ -f s:\mozilla\layout\html\tests\printer\table\file_list.txt -d 5
goto done
:error