зеркало из https://github.com/mozilla/gecko-dev.git
regression tests
This commit is contained in:
Родитель
7d4ee90d8c
Коммит
d52908a587
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>caption element: align attribute</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>caption element: align attribute</h1>
|
||||
|
||||
<table border>
|
||||
<caption>The table's caption, with no align. Default is "top".</caption>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
</table>
|
||||
|
||||
<table border>
|
||||
<caption align="top">The table's caption, with align="top".</caption>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
</table>
|
||||
|
||||
<table border>
|
||||
<caption align="bottom">The table's caption, with align="bottom".</caption>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
</table>
|
||||
|
||||
<table border>
|
||||
<caption align="left">The table's caption, with align="left".</caption>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
</table>
|
||||
|
||||
<table border>
|
||||
<caption align="right">The table's caption, with align="right".</caption>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
<tr><td>Data</td><td>Data</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<body>
|
||||
|
||||
<table border="3" BORDERCOLOR="#RRGGBB">
|
||||
<caption>Testing BORDERCOLOR tag the border shood be blue.</caption>
|
||||
|
||||
<tr>
|
||||
<td>mike</td>
|
||||
|
||||
<td>was</td>
|
||||
|
||||
<td>here</td>
|
||||
|
||||
<td>mike</td>
|
||||
|
||||
<td>was</td>
|
||||
|
||||
<td>here</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>mike</td>
|
||||
|
||||
<td>was</td>
|
||||
|
||||
<td>here</td>
|
||||
|
||||
<td>mike</td>
|
||||
|
||||
<td>was</td>
|
||||
|
||||
<td>here</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
|
@ -1,4 +1,5 @@
|
|||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1010.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug10216.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug10296-1.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug10296-2.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1055-1.html
|
||||
|
@ -9,6 +10,7 @@ file:///s:/mozilla/layout/html/tests/table/bugs/bug1067-1.html
|
|||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1067-2.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug11026.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1128.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1163-1.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1164.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug1188.html
|
||||
file:///s:/mozilla/layout/html/tests/table/bugs/bug11944.html
|
||||
|
|
|
@ -0,0 +1,92 @@
|
|||
<table style="border: 2px solid red" border=2>
|
||||
<tr><td>One</td><td>Two</td></tr>
|
||||
</table>
|
||||
<br>
|
||||
<table style="border:solid red" border=2>
|
||||
<tr><td>One</td><td>Two</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table border>
|
||||
<tr>
|
||||
<td>one</td>
|
||||
<td>two</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>no</td>
|
||||
<td>border</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
This table:
|
||||
<table style="border: thin solid red" border=2>
|
||||
<tr><td>One</td><td>Two</td></tr>
|
||||
</table>
|
||||
|
||||
<BR>
|
||||
|
||||
Should look just like this one:
|
||||
<table border=2>
|
||||
<tr><td>One</td><td>Two</td></tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table style="border: thin solid red">
|
||||
<tr>
|
||||
<td style="border: thin solid green">one</td>
|
||||
<td style="border: thin solid red">two</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table style="border: thin solid red">
|
||||
<tr>
|
||||
<td style="border: thin solid green">one</td>
|
||||
<td style="border: thin solid red">two</td>
|
||||
<td style="border: thin solid blue">three</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: thin solid green">four</td>
|
||||
<td style="border: thin solid yellow">five</td>
|
||||
<td style="border: thin solid orange">six</td></tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table border=2 style="border: thin solid red">
|
||||
<tr>
|
||||
<td style="border: thin solid green">one</td>
|
||||
<td style="border: thin solid red">two</td>
|
||||
<td style="border: thin solid blue">three</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: thin solid green">four</td>
|
||||
<td style="border: thin solid yellow">five</td>
|
||||
<td style="border: thin solid orange">six</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table border=5>
|
||||
<tr>
|
||||
<td>foo</td>
|
||||
<td>bar</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<BR>
|
||||
|
||||
<table border=5>
|
||||
<tr>
|
||||
<td style="border:2px solid red">foo</td>
|
||||
<td style="border:2px solid red">bar</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -6,3 +6,53 @@
|
|||
</caption>
|
||||
<tr><td style="padding:10px;">FOO</td></tr>
|
||||
</table>
|
||||
<BR>
|
||||
<table border>
|
||||
<caption align=top>top center</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption align=top style="text-align:right">top right</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption align=bottom>bottom center</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption align=bottom style="text-align:left">bottom left</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption style="caption-side:top">top center</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption style="caption-side:bottom">bottom center</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border>
|
||||
<caption style="vertical-align:bottom">top center</caption>
|
||||
<tr>
|
||||
<td>FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO FOO</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
file:///s:/mozilla/layout/html/tests/table/core/backgrounds.html
|
||||
file:///s:/mozilla/layout/html/tests/table/core/bloomberg.html
|
||||
file:///s:/mozilla/layout/html/tests/table/core/borders.html
|
||||
file:///s:/mozilla/layout/html/tests/table/core/captions.html
|
||||
file:///s:/mozilla/layout/html/tests/table/core/cell_heights.html
|
||||
file:///s:/mozilla/layout/html/tests/table/core/columns.html
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<head>
|
||||
<script>
|
||||
var selectedCell = null;
|
||||
|
||||
function select(e) {
|
||||
if (selectedCell) {
|
||||
selectedCell.style.backgroundColor="white";
|
||||
selectedCell.style.color="black";
|
||||
}
|
||||
selectedCell = this;
|
||||
this.style.backgroundColor="blue";
|
||||
this.style.color="white";
|
||||
}
|
||||
|
||||
function init() {
|
||||
var cells = document.getElementsByTagName("TD");
|
||||
for (var i=0; i<cells.length; i++) {
|
||||
cells[i].onmousedown=select;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
click on a cell, you may have to load the doc twice
|
||||
<BR>
|
||||
<table id="mytable" border=1 cellspacing=3 cellpadding=10>
|
||||
<tr>
|
||||
<td>Apples</td>
|
||||
<td>Oranges</td>
|
||||
<td>Peaches</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Guitar</td>
|
||||
<td>Violin</td>
|
||||
<td>Bass</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Basketball</td>
|
||||
<td>Baseball</td>
|
||||
<td>Football</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
<!--
|
||||
<table border=3 bordercolor=red stylex="border: 3px solid red">
|
||||
<tr>
|
||||
<td>foo</td></tr></table>
|
||||
|
||||
-->
|
Загрузка…
Ссылка в новой задаче