зеркало из https://github.com/mozilla/pjs.git
new regression tests, not affecting the build.
This commit is contained in:
Родитель
7774a39d22
Коммит
daed22dcfa
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<body>
|
||||
|
||||
<table width="100%" border="1">
|
||||
<colgroup>
|
||||
<col width="25">
|
||||
<col width="10%">
|
||||
<col width="1*">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td>Test</td>
|
||||
<td>Test</td>
|
||||
<td>Test</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<HTML>
|
||||
<!-- Created with GoldED 4.7.3 (23.6.97) -->
|
||||
<HEAD>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<META name="description" lang="fr" content="Test sur les tables">
|
||||
<META name="author" content="Sébastien Desvignes">
|
||||
<META name="generator" content="WWW publishing extensions for GoldED">
|
||||
<TITLE>Table width test</TITLE>
|
||||
<STYLE type="text/css">
|
||||
BODY
|
||||
{
|
||||
color: #000;
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
H1
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
TABLE
|
||||
{
|
||||
border: outset 1px grey;
|
||||
}
|
||||
|
||||
TD
|
||||
{
|
||||
border: inset 1px grey;
|
||||
}
|
||||
|
||||
IMG
|
||||
{
|
||||
border: solid 1px white;
|
||||
}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<TABLE>
|
||||
<CAPTION>Table with no width attribute</CAPTION>
|
||||
<COL width="50px">
|
||||
<COL width="1*">
|
||||
<COL width="50px">
|
||||
<COL width="3*">
|
||||
<TR>
|
||||
<TD>50px</TD>
|
||||
<TD>1*</TD>
|
||||
<TD>50px</TD>
|
||||
<TD>3*</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P>correct
|
||||
|
||||
<TABLE width="500px">
|
||||
<CAPTION>Table with fixed width attribute =500px</CAPTION>
|
||||
<COL width="50px">
|
||||
<COL width="1*">
|
||||
<COL width="50px">
|
||||
<COL width="3*">
|
||||
<TR>
|
||||
<TD>50px</TD>
|
||||
<TD>1*</TD>
|
||||
<TD>50px</TD>
|
||||
<TD>3*</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P>incorrect: it seems that the * columns start with the same width than the previous
|
||||
example, and then all the columnss are expanded proportionally to occupy the extra space.
|
||||
The * columns should use all the space unused by other columns, so no expand are needed
|
||||
for other columns.
|
||||
|
||||
<TABLE width="100%">
|
||||
<CAPTION>Table with width attribute =100%</CAPTION>
|
||||
<COL width="50px">
|
||||
<COL width="1*">
|
||||
<COL width="50px">
|
||||
<COL width="3*">
|
||||
<TR>
|
||||
<TD>50px</TD>
|
||||
<TD>1*</TD>
|
||||
<TD>50px</TD>
|
||||
<TD>3*</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P>incorrect: same as above.
|
||||
|
||||
<TABLE width="500">
|
||||
<CAPTION>Table with width attribute =500px</CAPTION>
|
||||
<COL width="1*">
|
||||
<COL width="2*">
|
||||
<COL width="1*">
|
||||
<COL width="6*">
|
||||
<TR>
|
||||
<TD>1*</TD>
|
||||
<TD>2*</TD>
|
||||
<TD>1*</TD>
|
||||
<TD>6*</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P>correct
|
||||
|
||||
<TABLE width="100%">
|
||||
<CAPTION>Table with width attribute =100%</CAPTION>
|
||||
<COL width="1*">
|
||||
<COL width="2*">
|
||||
<COL width="1*">
|
||||
<COL width="6*">
|
||||
<TR>
|
||||
<TD>1*</TD>
|
||||
<TD>2*</TD>
|
||||
<TD>1*</TD>
|
||||
<TD>6*</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<P>correct
|
||||
</BODY>
|
||||
|
||||
</HTML>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Testcase
|
||||
</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<body>
|
||||
<table border="1" cellspacing="0" cellpadding="0" width="400">
|
||||
<caption>
|
||||
Table is 400 px width, set with table width=400.
|
||||
</caption>
|
||||
<col width="50">
|
||||
<col width="*">
|
||||
<col width="50">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
table Cols 1 - 3. There must be a lot of text here
|
||||
in order to see the bug. table Cols 1 - 3. There
|
||||
must be a lot of text here in order to see the bug.
|
||||
table Cols 1 - 3. There must be a lot of text here
|
||||
in order to see the bug. table Cols 1 - 3. There
|
||||
must be a lot of text here in order to see the bug.
|
||||
table Cols 1 - 3. There must be a lot of text here
|
||||
in order to see the bug. table Cols 1 - 3. There
|
||||
must be a lot of text here in order to see the bug.
|
||||
table Cols 1 - 3. There must be a lot of text here
|
||||
in order to see the bug. table Cols 1 - 3. There
|
||||
must be a lot of text here in order to see the bug.
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -15,6 +15,9 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug28856.xul
|
|||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2886.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2886-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug28928.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29058-1.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29058-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29058-3.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29157.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29326.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug29429.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче