Parser regression test files.
** NOT PART OF THE BUILD ** git-svn-id: svn://10.0.0.236/trunk@101847 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
19
mozilla/htmlparser/tests/logparse/56245_1.html
Normal file
19
mozilla/htmlparser/tests/logparse/56245_1.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font { background-color:yellow }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font color=red>italized text<x> unknown
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td>
|
||||
</font>cell 1
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
19
mozilla/htmlparser/tests/logparse/56245_2.html
Normal file
19
mozilla/htmlparser/tests/logparse/56245_2.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<HTML>
|
||||
<BODY bgColor=#000099>
|
||||
<TABLE border=1>
|
||||
<TR>
|
||||
<TD bgcolor="red">
|
||||
Cell-1
|
||||
</TD>
|
||||
</TR>
|
||||
<TR vAlign=top>
|
||||
<TD bgColor="blue">
|
||||
<FORM>
|
||||
<TABLE border=1>
|
||||
<TR vAlign=top>
|
||||
<TD bgcolor="green">
|
||||
Cell-2
|
||||
</TD>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
||||
22
mozilla/htmlparser/tests/logparse/56245_3.html
Normal file
22
mozilla/htmlparser/tests/logparse/56245_3.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font { background-color:yellow }
|
||||
div { color:green }
|
||||
x { background-color:blue; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font face="helvetica">
|
||||
red<x> unknown
|
||||
<div>div a
|
||||
</font>
|
||||
div b
|
||||
</div>
|
||||
normal text
|
||||
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
8
mozilla/htmlparser/tests/logparse/84491.html
Normal file
8
mozilla/htmlparser/tests/logparse/84491.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<a href="foo.html">
|
||||
<iframe>
|
||||
<a href="bar.html">
|
||||
</iframe>foo
|
||||
</a>
|
||||
</body>
|
||||
15
mozilla/htmlparser/tests/logparse/88992.html
Normal file
15
mozilla/htmlparser/tests/logparse/88992.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE>
|
||||
<HTML>
|
||||
<BODY bgcolor=pink>
|
||||
<table>⟨
|
||||
<tr><!-- ⟩ --><harish></harish>
|
||||
<td> &
|
||||
<div>div<p><xmp>p<I>I</div></I></xmp>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<object><i>italic</object>
|
||||
This text doesn't show up.!
|
||||
|
||||
</BODY></HTML>
|
||||
6
mozilla/htmlparser/tests/logparse/91051.html
Normal file
6
mozilla/htmlparser/tests/logparse/91051.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
This should be visible.
|
||||
<p>
|
||||
This is a new paragraph.
|
||||
|
||||
|
||||
34
mozilla/htmlparser/tests/logparse/92530.html
Normal file
34
mozilla/htmlparser/tests/logparse/92530.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!-- Tag Soup -->
|
||||
<html>
|
||||
<head>
|
||||
<title> Bugscape Bug 5040 </title>
|
||||
<style type="text/css">
|
||||
:table-cell { border: red dotted 10px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr>
|
||||
<td bgcolor=pink>
|
||||
<form>
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td bgcolor=blue>
|
||||
<table>
|
||||
<span> CONTENT PROMOTED ABOVE INNER TABLE </span>
|
||||
<tr>
|
||||
<td bgcolor=green> ROW 1 CELL 1 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> ROW 2 CELL 1 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
24
mozilla/htmlparser/tests/logparse/93365.html
Normal file
24
mozilla/htmlparser/tests/logparse/93365.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font {
|
||||
font-size: 20pt;
|
||||
color: yellow;
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font face="courier">
|
||||
|
||||
this text is above a table.
|
||||
|
||||
<TABLE border=1><TR><TD>
|
||||
this text is inside a table.
|
||||
</td></tr></table>
|
||||
|
||||
this text is below a table.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
9
mozilla/htmlparser/tests/logparse/94208.html
Normal file
9
mozilla/htmlparser/tests/logparse/94208.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<HTML>
|
||||
<BODY>
|
||||
<FONT color=blue>
|
||||
<B>blue bold,<I>blue bold italic,
|
||||
</FONT>not blue but bold and italic,
|
||||
<FONT COLOR="red">red bold and italic,
|
||||
</B>red and italic but not bold,</I>red not bold not italic</FONT>
|
||||
</BODY>
|
||||
</HTML>
|
||||
15
mozilla/htmlparser/tests/logparse/96130.html
Normal file
15
mozilla/htmlparser/tests/logparse/96130.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<HTML>
|
||||
<style>
|
||||
Z { color:red; }
|
||||
</style>
|
||||
<BODY>
|
||||
<FONT><X>
|
||||
<TABLE border="2">
|
||||
<Z>Should be above the Table</FONT>
|
||||
<TR>
|
||||
<TD>
|
||||
Cell
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</BODY></HTML>
|
||||
@@ -20,6 +20,7 @@
|
||||
foreach $input(<FILE_LIST>) {
|
||||
$input =~s/\n//g;
|
||||
@output=split(/\./,$input);
|
||||
print "\n$input\n";
|
||||
system("$drive\mozilla/dist/WIN32_D.obj/bin/TestParser.exe $input $output[0].b");
|
||||
}
|
||||
}
|
||||
@@ -27,13 +28,14 @@
|
||||
foreach $input(<FILE_LIST>) {
|
||||
$input =~s/\n//g;
|
||||
@output=split(/\./,$input);
|
||||
print "\n$input\n";
|
||||
system("$drive\mozilla/dist/WIN32_D.obj/bin/TestParser.exe $input $output[0].v");
|
||||
system("fc $output[0].b $output[0].v");
|
||||
system("fc $output[0].b $output[0].v");
|
||||
}
|
||||
}
|
||||
else {
|
||||
print "\n\"$ARGV[0]\" unknown....\n";
|
||||
print "\nUsage: perl TestParser.pl [-b|-v|-c] <filelist>\n\n";
|
||||
print "\nUsage: perl TestParser.pl [-b|-v] <filelist>\n\n";
|
||||
}
|
||||
|
||||
close(FILE_LIST);
|
||||
|
||||
Reference in New Issue
Block a user