new regression tests

This commit is contained in:
karnaze%netscape.com 1999-05-26 22:19:02 +00:00
parent fb81e51425
commit e69415fcc9
13 changed files with 465 additions and 109 deletions

View File

@ -1,4 +1,5 @@
<html><head></head><body>
If the text is too low, then it is probably Bug 6920.
<!-- the BGCOLOR attribute is just to make the table breakage clear -->
<table border="1" BGCOLOR="#ffcc00"><tr><td>
<dl>

View File

@ -2,7 +2,7 @@
<body background="/channelF/images/bg_fifaglobe.gif" bgcolor="#FFFFFF"
topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<img src="raptor.jpg" width="100" height="100" border="1">
<img src="../images/raptor.jpg" width="100" height="100" border="1">
<table width=100% cellpadding=0 cellspacing=0 border=2>
<tr valign=top>
@ -10,7 +10,7 @@ topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table style="margin:0px;" width="100" border="1" cellpadding="0"
cellspacing="0" bgcolor="#dddddd">
<tr valign="top"><td>
<img src="raptor.jpg" width="100" height="100" border="0" hspace="4"
<img src="../images/raptor.jpg" width="100" height="100" border="0" hspace="4"
vspace="0" alt="">
HELLO</td></tr>
</table>

View File

@ -0,0 +1,40 @@
<HTML><HEAD><base href="http://www.mozilla.org/quality/smoketests/"></HEAD>
<BODY>
<img src="raptor.jpg" width=220 height=100>
<BR>
<TABLE BORDER=0 WIDTH="100%">
<TR>
<TD BGCOLOR="#ff0000">X</TD>
<TD BGCOLOR="#DDDDDD">X</TD>
<TD BGCOLOR="#00ff00">X</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDD00" COLSPAN=2 valign=top>
this_word_has_no_breakable_spaces
... if this bug is still active and the window is >250px wide, you can't see that the
word above is 33 characters long. (I could have used a table instead
but this is simpler).
</TD>
<TD BGCOLOR="#9999ff" VALIGN=TOP>
Try shrinking this table to ~250px wide. The left hand (gold) column will
suddenly expand in width.<br><br>
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
mozilla qa smoke tests smoke qa mozilla
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

View File

@ -1,4 +1,5 @@
<HTML><BODY>
If the font size is too big for the inside table, it is probably bug 6925.
<table border>
<tr>
<td valign=top>

View File

@ -0,0 +1,13 @@
<html><body>
<table border=1 cellspacing=20 bgcolor=red>
<TR>
<TD>Cell</TD>
<TD ROWSPAN=2>
<img src=../images/raptor.jpg width=100 height=200>
</TD></TR>
<TR>
<TD>Cell</TD></TR>
</table>
</body></html>

View File

@ -50,7 +50,9 @@ file://s:/mozilla/layout/html/tests/table/bugs/bug5838.html
file://s:/mozilla/layout/html/tests/table/bugs/bug6184.html
file://s:/mozilla/layout/html/tests/table/bugs/bug641-1.html
file://s:/mozilla/layout/html/tests/table/bugs/bug641-2.html
file://s:/mozilla/layout/html/tests/table/bugs/bug6404.html
file://s:/mozilla/layout/html/tests/table/bugs/bug647.html
file://s:/mozilla/layout/html/tests/table/bugs/bug6933.html
file://s:/mozilla/layout/html/tests/table/bugs/bug709.html
file://s:/mozilla/layout/html/tests/table/bugs/bug727.html
file://s:/mozilla/layout/html/tests/table/bugs/bug963.html

View File

@ -0,0 +1,63 @@
<table border>
<tr>
<td width=100>foo</td>
<td>no width given</td>
<td width=30%>a percent width</td></tr>
<tr>
<td width=500 colspan=3>foo</td></tr>
</table>
<BR>
<table border>
<tr>
<td width=100>foo</td>
<td>no width given</td>
<td width=30%>a percent width</td></tr>
<tr>
<td width=200 colspan=2>spans col 1-2</td><td>last cell</td></tr>
<tr>
<td>first cell</td><td width=300 colspan=2>spans col 2-3</td></tr>
</table>
<BR>
<table width=700 border>
<tr>
<td width=100>fooooo oooooo oooooo oooooo oooooo</td>
<td>bar</td>
</tr>
</table>
<BR>
<TABLE CELLPADDING="3" CELLSPACING="0" border="1" width="400">
<TR>
<TD colspan="2"><P><b>This is colspan=2</b></P></TD>
<TD>Blah Blah Blah Blah Blah Blah</TD>
</TR>
<TR>
<TD colspan="3">
<p><b>This is colspan=3</b> blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah
</p>
</TD>
</TR>
</TABLE>
<BR>
<br>
<TABLE CELLPADDING="3" CELLSPACING="0" border="1" width="400">
<TR>
<TD><P><b>no colspan declared</b></P></TD>
<TD>Blah Blah Blah Blah Blah Blah</TD>
</TR>
<TR>
<TD colspan="2">
<p><b>This is colspan=2</b> blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah
</p>
</TD>
</TR>
</TABLE>
<!--and also consider cases where there is a width attribute on the table element itself.-->

View File

@ -0,0 +1,2 @@
file://s:/mozilla/layout/html/tests/table/core/one_row.html
file://s:/mozilla/layout/html/tests/table/core/col_span.html

View File

@ -0,0 +1,102 @@
Table auto, no cells fixed
<table border>
<tr>
<td>fooooooooooooooooooooooooooooo</td>
<td>barrrrrrrrr</td>
<td>zap</td>
</tr>
</table>
<BR>
Table fixed, no cells fixed
<table width=500 border>
<tr>
<td>fooooooooooooooooooooooooooooo</td>
<td>barrrrrrrrr</td>
<td>zap</td>
</tr>
</table>
<BR>
Table fixed, no cells fixed
<table width=200 border>
<tr>
<td>fo oo oo oo oo oo oo oo oo oo oo oo oo oo oo</td>
<td>barr rrrr rrrr</td>
<td>zap</td>
</tr>
</table>
<BR>
Table auto, 1st cell fixed
<table border>
<tr>
<td width=100>fooooo</td>
<td>bar</td>
</tr>
</table>
<BR>
Table fixed, 1st cell fixed
<table width=500 border>
<tr>
<td width=100>fooooo</td>
<td>bar</td>
</tr>
</table>
<BR>
Table auto, 1st cell fixed too small
<table border>
<tr>
<td width=100>fooooooooooooooooooooooooooooo</td>
<td>bar</td>
</tr>
</table>
<BR>
Table fixed, 1st cell fixed too small
<table width=500 border>
<tr>
<td width=100>fooooooooooooooooooooooooooooo</td>
<td>bar</td>
</tr>
</table>
<BR>
Table auto, both cells fixed
<table border>
<tr>
<td width=100>foooo</td>
<td width=100>bar</td>
</tr>
</table>
<BR>
Table fixed, both cells fixed
<table width=500 border>
<tr>
<td width=100>foooo</td>
<td width=100>bar</td>
</tr>
</table>
<BR>
Table auto, both cells fixed, 1st one too small
<table border>
<tr>
<td width=100>fooooooooooooooooooooooooooooo</td>
<td width=100>bar</td>
</tr>
</table>
<BR>
Table fixed, both cells fixed, 1st cell fixed too small
<table width=500 border>
<tr>
<td width=100>fooooooooooooooooooooooooooooo</td>
<td width=100>bar</td>
</tr>
</table>
<BR>

View 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 -o s:\mozilla\layout\html\tests\table\core\verify\ -rd s:\mozilla\layout\html\tests\table\core -f s:\mozilla\layout\html\tests\table\core\file_list.txt
goto done
:baseline
s:\mozilla\dist\win32_d.obj\bin\viewer -o s:\mozilla\layout\html\tests\table\core\ -f s:\mozilla\layout\html\tests\table\core\file_list.txt
goto done
:error
echo syntax: rtest (baseline verify)
:done

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -1,106 +1,219 @@
<!doctype HTML PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN">
<html>
<head>
<title>Web Browser Web View (HTML): Table</title>
<meta name="GENERATOR" CONTENT="Mozilla/3.0 (Win95; I) [Netscape]">
</head>
<body bgcolor=FFDEAD TEXT="000000">
<h1><font color=#FF0000>Acceptance Test Case<br>Web Browser: Web View (HTML)</font></h1>
<p>
<font color=#FF0000 size=+2><b>Table: &lt;TR&gt; ALIGN</b></font>
<hr>
This acceptance test case tests the optional <b>&lt;TR&gt;</b> tag <b>ALIGN</b> attribute which controls the
horizontal alignment of all the cells in a row. This cause the contents of each cell in the row to be aligned
either LEFT|CENTER|RIGHT with respect to the current left and right margins of the display window.
The <b>Header</b> cells by default are aligned <b>CENTER</b> while the <b>Data</b> cells by default are aligned <b>LEFT</b>.
<p>
<b>Test Instructions:</b>
<ol>
<li>Verify that the sample text displays as stated in each of the following test cases:</li>
<p>
<table bgcolor=#F08080 cellpadding=7>
<tr>
<td><a href="wa_table_tr_align.html#TestCase_1">Test Case #1</a></td>
<td><font color=blue><b>Table displaying Header "CENTER "& Data "LEFT" default horizontal row alignment</b></font></td>
</tr>
<tr>
<td><a href="wa_table_tr_align.html#TestCase_2">Test Case #2</a></td>
<td><font color=blue><b>Tables displaying Header & Data "LEFT|CENTER|RIGHT" horizontal row alignment</b></font></td>
</tr>
</table>
<p>
<li>Verify that the table is maintained when you <b>minimize/maximize</b> the screen.</li>
<li>Verify that the table is maintained when you <b>re-size left & right</b> the screen.</li>
<li>Verify that the table is maintained when you <b>re-size top & bottom</b> the screen.</li>
<li>Verify re-draw takes place correctly after maximizing the screen.</li>
<li>Verify reload works.</li>
</ol>
<hr>
<p>
<table border=1 bgcolor=lightcoral cellpadding=10>
<tr><th>
<A NAME="TestCase_1"></A>Test Case #1: <font color=blue>Table displaying Header "CENTER "& Data "LEFT" default horizontal row alignment</font>
<font size=-1><i>(using &ltTR&gt tag)</i></font>
</th></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Default Horizontal Row Alignment</caption>
<tr><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</table>
<hr>
<p>
<table border=1 bgcolor=lightcoral cellpadding=10>
<tr><th>
<A NAME="TestCase_2"></A>Test Case #2: <font color=blue>Tables displaying Header & Data "LEFT|CENTER|RIGHT" horizontal row alignment</font>
<font size=-1><i>(using &ltTR ALIGN=LEFT|CENTER|RIGHT&gt tag)</i></font>
</th></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=LEFT</caption>
<tr align=left><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=left><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</tr>
<tr bgcolor=gold><td colspan=3>
<b><font color=red>
Note: The attribute <font color=blue>ALIGN=LEFT</font> has no special effect on the row data since it simply reiterates the default horizontal row alignment!
<p></font></b>
</td></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=CENTER</caption>
<tr align=center><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=center><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
<tr bgcolor=gold><td colspan=3>
<b><font color=red>
Note: The attribute <font color=blue>ALIGN=CENTER</font> has no special effect on the row head since it simply reiterates the default horizontal row alignment!
<p></font></b>
</td></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=RIGHT</caption>
<tr align=right><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=right><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</table>
<p>
<hr>
<img width=13 height=13 src="pics/bullr.gif"> Created 9/9/96 by <a href="mailto:ronaldg@netscape.com">Ronald Greti</a><br>
<p>
<br><p>
<P><font size=-1>CONFIDENTIAL AND PROPRIETARY TEST SCRIPT OF NETSCAPE COMMUNICATIONS CORP.<BR>Copyright © 1996 Netscape Communications Corp. All Rights Reserved.<BR>Use of this Test Script is subject to the terms of the applicable license agreement from Netscape Communications Corp.</font>
</body>
</html>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN">
<html>
<head>
<title>Web Browser Web View (HTML): Table</title>
<meta name="GENERATOR" CONTENT="Mozilla/3.0 (Win95; I) [Netscape]">
</head>
<body bgcolor=FFDEAD TEXT="000000">
If there is missing vertical space between tables and/or tables and other content, it is bug 6997.
<BR>
<h1><font color=#FF0000>Acceptance Test Case<br>Web Browser: Web View (HTML)</font></h1>
<p>
<font color=#FF0000 size=+2><b>Table: &lt;TR&gt; ALIGN</b></font>
<hr>
This acceptance test case tests the optional <b>&lt;TR&gt;</b> tag <b>ALIGN</b> attribute which controls the
horizontal alignment of all the cells in a row. This cause the contents of each cell in the row to be aligned
either LEFT|CENTER|RIGHT with respect to the current left and right margins of the display window.
The <b>Header</b> cells by default are aligned <b>CENTER</b> while the <b>Data</b> cells by default are aligned <b>LEFT</b>.
<p>
<b>Test Instructions:</b>
<ol>
<li>Verify that the sample text displays as stated in each of the following test cases:</li>
<p>
<table bgcolor=#F08080 cellpadding=7>
<tr>
<td><a href="wa_table_tr_align.html#TestCase_1">Test Case #1</a></td>
<td><font color=blue><b>Table displaying Header "CENTER "& Data "LEFT" default horizontal row alignment</b></font></td>
</tr>
<tr>
<td><a href="wa_table_tr_align.html#TestCase_2">Test Case #2</a></td>
<td><font color=blue><b>Tables displaying Header & Data "LEFT|CENTER|RIGHT" horizontal row alignment</b></font></td>
</tr>
</table>
<p>
<li>Verify that the table is maintained when you <b>minimize/maximize</b> the screen.</li>
<li>Verify that the table is maintained when you <b>re-size left & right</b> the screen.</li>
<li>Verify that the table is maintained when you <b>re-size top & bottom</b> the screen.</li>
<li>Verify re-draw takes place correctly after maximizing the screen.</li>
<li>Verify reload works.</li>
</ol>
<hr>
<p>
<table border=1 bgcolor=lightcoral cellpadding=10>
<tr><th>
<A NAME="TestCase_1"></A>Test Case #1: <font color=blue>Table displaying Header "CENTER "& Data "LEFT" default horizontal row alignment</font>
<font size=-1><i>(using &ltTR&gt tag)</i></font>
</th></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Default Horizontal Row Alignment</caption>
<tr><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</table>
<hr>
<p>
<table border=1 bgcolor=lightcoral cellpadding=10>
<tr><th>
<A NAME="TestCase_2"></A>Test Case #2: <font color=blue>Tables displaying Header & Data "LEFT|CENTER|RIGHT" horizontal row alignment</font>
<font size=-1><i>(using &ltTR ALIGN=LEFT|CENTER|RIGHT&gt tag)</i></font>
</th></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=LEFT</caption>
<tr align=left><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=left><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</tr>
<tr bgcolor=gold><td colspan=3>
<b><font color=red>
Note: The attribute <font color=blue>ALIGN=LEFT</font> has no special effect on the row data since it simply reiterates the default horizontal row alignment!
<p></font></b>
</td></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=CENTER</caption>
<tr align=center><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=center><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
<tr bgcolor=gold><td colspan=3>
<b><font color=red>
Note: The attribute <font color=blue>ALIGN=CENTER</font> has no special effect on the row head since it simply reiterates the default horizontal row alignment!
<p></font></b>
</td></tr>
</table>
<p>
<table border bgcolor=bisque width=45%>
<caption align=top>Horizontal Row Alignment=RIGHT</caption>
<tr align=right><th>row head 1</th><th>row head 2</th><th>row head 3</th></tr>
<tr align=right><td>row data 1</td><td>row data 2</td><td>row data 3</td></tr>
</table>
<p>
<hr>
<img width=13 height=13 src="pics/bullr.gif"> Created 9/9/96 by <a href="mailto:ronaldg@netscape.com">Ronald Greti</a><br>
<p>
<br><p>
<P><font size=-1>CONFIDENTIAL AND PROPRIETARY TEST SCRIPT OF NETSCAPE COMMUNICATIONS CORP.<BR>Copyright © 1996 Netscape Communications Corp. All Rights Reserved.<BR>Use of this Test Script is subject to the terms of the applicable license agreement from Netscape Communications Corp.</font>
</body>
</html>

View File

@ -1,6 +1,9 @@
@echo off
cd viewer_tests
cd core
call rtest.bat %1
cd ..\viewer_tests
call rtest.bat %1
cd ..\bugs