зеркало из https://github.com/mozilla/pjs.git
new regression tests, not affecting the build.
This commit is contained in:
Родитель
47d0feae47
Коммит
4c67ef0509
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>tfoot css</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
table{height:100%;}
|
||||
thead{font-weight:bold}
|
||||
tfoot{font-weight:bold}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table summary="tfoot test">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>THEAD</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>TFOOT</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>TBODY</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,48 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>test a bug</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>TABLE 1 - without 'height' style on TABLE</p>
|
||||
<table style="border: solid">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>THEAD</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>TFOOT</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>TBODY</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
<p>TABLE 2 - with 'height' style on TABLE</p>
|
||||
<table style="border: solid; height: 100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>THEAD</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>TFOOT</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>TBODY</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>tfoot test</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body{background-color:rgb(104, 168, 232);}
|
||||
table{width:100%;}
|
||||
table.test >thead{background-color:red;font-weight:bold;}
|
||||
table.test >tbody{background-color:yellow;font-style:italic;}
|
||||
table.test >tfoot{background-color:blue;}
|
||||
#h1{height:24mm;}
|
||||
#h2{height:25mm;}
|
||||
#main{background-color:green;}
|
||||
div{text-align:center;background-color:#d0d0d0;font-size:6mm}
|
||||
td{ vertical-align:top;text-align:center;font-size:6mm;}
|
||||
td.format{width:50%;}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>Font Size:6mm</div>
|
||||
<table id="main">
|
||||
<tr>
|
||||
<td class="format">
|
||||
<div>Table height at 24mm</div>
|
||||
<table summary="tfoot test with table height at 24mm" id="h1" class="test">
|
||||
<thead><tr><td>THEAD</td></tr></thead>
|
||||
<tfoot><tr><td>TFOOT</td></tr></tfoot>
|
||||
<tbody><tr><td>TBODY</td></tr></tbody>
|
||||
</table>
|
||||
</td>
|
||||
<td class="format">
|
||||
<div>Table height at 25mm</div>
|
||||
<table summary="tfoot test with table height at 25mm" id="h2" class="test">
|
||||
<thead><tr><td>THEAD</td></tr></thead>
|
||||
<tfoot><tr><td>TFOOT</td></tr></tfoot>
|
||||
<tbody><tr><td>TBODY</td></tr></tbody>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN style http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
window.onload = createTable;
|
||||
|
||||
function createTable()
|
||||
{
|
||||
var oTable = document.createElement("table");
|
||||
document.body.appendChild(oTable);
|
||||
oTable.appendChild(document.createElement("tbody"));
|
||||
|
||||
// THead creation block
|
||||
var oTHead = oTable.createTHead();
|
||||
var oRow = oTHead.insertRow(0);
|
||||
for(col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
var cellValue = document.createTextNode("h" + col);
|
||||
oCell.appendChild(cellValue);
|
||||
}
|
||||
|
||||
|
||||
// TFoot creation block
|
||||
var oTFoot = oTable.createTFoot();
|
||||
var oRow = oTFoot.insertRow(0); // create table footer row
|
||||
for(col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
var cellValue = document.createTextNode("f" + col);
|
||||
oCell.appendChild(cellValue);
|
||||
}
|
||||
|
||||
for(row=0;row<1;row++) // ask for just 1 row
|
||||
{
|
||||
var oRow = oTable.tBodies[0].insertRow(row);
|
||||
for(col=0;col<8;col++)
|
||||
{
|
||||
var oCell = oRow.insertCell(col);
|
||||
var newValue2 = document.createTextNode("r" + row + "c"
|
||||
+ col);
|
||||
oCell.appendChild(newValue2);
|
||||
}
|
||||
}
|
||||
|
||||
oTable.border = 4;
|
||||
|
||||
var str = "";
|
||||
str += ".rows.length: " + oTable.rows.length + "\n";
|
||||
//str += ".tHead.rows.length: " + oTable.tHead.rows.length + "\n";
|
||||
//str += ".tFoot.rows.length: " + oTable.tFoot.rows.length + "\n";
|
||||
str += ".tBodies.length: " + oTable.tBodies.length + "\n";
|
||||
str += ".tBodies[0].rows.length: " + oTable.tBodies[0].rows.length
|
||||
+ "\n";
|
||||
|
||||
//alert(str);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,94 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
<p>IFRAME inside TFOOT</p>
|
||||
<TABLE border>
|
||||
|
||||
<THEAD>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">THEAD blah blah blah blah blah blah THEAD</span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</THEAD>
|
||||
|
||||
<TFOOT>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<IFRAME SRC="about:blank" HEIGHT="150"
|
||||
WIDTH="125" style="border:5px solid red;margin:10px;padding:10px;"></IFRAME>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TFOOT>
|
||||
|
||||
<TBODY>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">TBODY blah blah blah blah blah blah TBODY </span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TBODY>
|
||||
|
||||
</TABLE>
|
||||
|
||||
<p>IFRAME inside TBODY</p>
|
||||
<TABLE border>
|
||||
|
||||
<THEAD>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">THEAD blah blah blah blah blah blah THEAD </span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</THEAD>
|
||||
|
||||
<TFOOT>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">TFOOT blah blah blah blah blah blah TFOOT </span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TFOOT>
|
||||
|
||||
<TBODY>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<IFRAME SRC="about:blank" HEIGHT="150"
|
||||
WIDTH="125" style="border:5px solid red;margin:10px;padding:10px;"></IFRAME>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TBODY>
|
||||
|
||||
</TABLE>
|
||||
|
||||
<p>IFRAME inside THEAD</p>
|
||||
<TABLE border>
|
||||
|
||||
<THEAD>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<IFRAME SRC="about:blank" HEIGHT="150"
|
||||
WIDTH="125" style="border:5px solid red;margin:10px;padding:10px;"></IFRAME>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</THEAD>
|
||||
|
||||
<TFOOT>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">TFOOT blah blah blah blah blah blah TFOOT </span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TFOOT>
|
||||
|
||||
<TBODY>
|
||||
<TR>
|
||||
<TD>A Cell</TD><TD>
|
||||
<span style="font-size: 40px;">TBODY blah blah blah blah blah blah TBODY </span>
|
||||
</TD><TD>A Cell</TD>
|
||||
</TR>
|
||||
</TBODY>
|
||||
|
||||
</TABLE>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<STYLE TYPE="text/css">
|
||||
.w1 {width:100%}
|
||||
.a-div {width:50%;position:relative; text-align:right; background-color:red;margin:0px;}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV>Buggy example: This table has a tfoot and a tbody</DIV>
|
||||
<TABLE border class="w1 fs-11-13">
|
||||
<TFOOT><TR style="background-color:olive"><TD align="right">This is the footer</TD></TR></TFOOT>
|
||||
<TBODY><TR style="background-color:silver" valign="top"><TD><DIV class="a-div">This row should be in the (grey) table body</DIV></TD></TR></TBODY>
|
||||
</TABLE><BR>
|
||||
<DIV>For comparision: The same table without a tfoot</DIV>
|
||||
<TABLE border class="w1 fs-11-13">
|
||||
<!--<TFOOT><TR style="background-color:olive"><TD align="right">This is the footer</TD></TR></TFOOT> -->
|
||||
<TBODY><TR style="background-color:silver" valign="top"><TD><DIV class="a-div">This row should be in the (grey) table body</DIV></TD></TR></TBODY>
|
||||
</TABLE>
|
||||
<DIV>ILLEGAL example: TFOOT after TBODY -- THIS IS PROHIBITED BY HTML 4.01 STRICT AND SHOULD NOT WORK IN STRICT MODE. Please fix or reenable transitional mode.</DIV>
|
||||
<TABLE border class="w1 fs-11-13">
|
||||
<TBODY><TR style="background-color:silver" valign="top"><TD><DIV class="a-div">This row should be in the (grey) table body</DIV></TD></TR></TBODY>
|
||||
<TFOOT><TR style="background-color:olive"><TD align="right">This is the footer</TD></TR></TFOOT>
|
||||
</TABLE><BR>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -139,6 +139,9 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug2585.html
|
|||
#file:///s|/mozilla/layout/html/tests/table/bugs/bug26193.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug26553.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2684.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug27038-1.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug27038-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug27038-3.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2757.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2763.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug2773.html
|
||||
|
@ -164,6 +167,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug30332-1.html
|
|||
file:///s|/mozilla/layout/html/tests/table/bugs/bug30332-2.html
|
||||
#file:///s|/mozilla/layout/html/tests/table/bugs/bug3037-1.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug3037-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug30418.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug30559.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug30985.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug30692.html
|
||||
|
@ -183,6 +187,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug3517.html
|
|||
file:///s|/mozilla/layout/html/tests/table/bugs/bug3681-1.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug3681-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug3718.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug38916.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug3977.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug4093.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug4284.html
|
||||
|
@ -199,6 +204,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug4527.html
|
|||
file:///s|/mozilla/layout/html/tests/table/bugs/bug45350.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug46368-1.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug46368-2.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug46924.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug4739.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug4803.html
|
||||
file:///s|/mozilla/layout/html/tests/table/bugs/bug4849.html
|
||||
|
|
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
|
||||
<TITLE>Account Information</TITLE>
|
||||
|
||||
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
The button should appear at the bottom and not cause any problems when moused over.
|
||||
<BR>
|
||||
<TABLE>
|
||||
|
||||
<TFOOT>
|
||||
<TR>
|
||||
<TD COLSPAN=4>
|
||||
<FORM METHOD=POST ACTION="/cucorp/ac_switch.jsp">
|
||||
<INPUT TYPE="submit" Value="Get Account Information">
|
||||
</FORM>
|
||||
</TD>
|
||||
</TR>
|
||||
</TFOOT>
|
||||
|
||||
<TBODY style=" height: 200px; overflow: auto">
|
||||
|
||||
<TR>
|
||||
<TD>000080000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$0.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000340000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000370000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000360000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000390000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000240000048</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$163,620.88</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000160000048</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$3,149.59</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000010000048</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$100,299.09</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000400000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000380000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000350000058</TD>
|
||||
<TD>12 MONTH TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$500.00</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD>000070000058</TD>
|
||||
<TD>30 DAY TERM</TD>
|
||||
<TD>CAD</TD>
|
||||
<TD>$0.00</TD>
|
||||
</TR>
|
||||
|
||||
</TBODY>
|
||||
|
||||
</TABLE>
|
||||
|
||||
|
||||
</BODY>
|
||||
|
||||
</HTML>
|
|
@ -0,0 +1,17 @@
|
|||
Enter some text and the text field should not disappear
|
||||
<BR>
|
||||
<table border bgcolor=blue>
|
||||
<tr>
|
||||
<td>
|
||||
<table border bgcolor=orange>
|
||||
<div>
|
||||
<tr>
|
||||
<td><input type="Text" size="25"></td>
|
||||
</tr>
|
||||
</div>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче