Add frameset regression tests for unix platforms. Not part of any build.

This commit is contained in:
pollmann%netscape.com 2000-03-20 22:56:18 +00:00
Родитель 3fc712ace8
Коммит ab9257907c
9 изменённых файлов: 151 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,15 @@
<html>
<head>
<title>Bug 3943</title>
</head>
<noscript></noscript>
<!-- This frameset won't load thanks to the noscript element above -->
<frameset rows="30%,*">
<frame src="http://www.gnu.org">
<frame src="http://www.linux.org">
</frameset>
</html>

Просмотреть файл

@ -0,0 +1,34 @@
<HTML>
<HEAD>
<title>www.fortunecity.com</title>
</HEAD>
<BODY bgcolor=fffccc>
<center>
<TABLE BORDER=0 cellpadding=0 cellspacing=0 width=540>
<tr>
<TD width=150 valign=top>
<CENTER>
<IFRAME WIDTH=100 HEIGHT=100 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SRC="http://www.fortunecity.com/pics/colours/gray.gif">
</IFRAME>
</CENTER>
</TD>
<td valign=top bgcolor=ffffff>
<img src=http://www.fortunecity.com/pics/colours/gray.gif width=1 height=1>
</td>
<td valign=top>
<P>IMPROVE YOUR SITE<BR>
In this week's Home Improvements you can find an article on how to
spice up your page by using imagemaps.
<table width=100%>
<tr>
<td align=right>
<A HREF="http://www2.fortunecity.com/downtown/index.cgi?referer=mainpage&more_news=1">MORE<IMG SRC="http://www.fortunecity.com/pics/trout.gif" BORDER=0 ></A>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE >
</center>
</BODY>
</HTML>

Просмотреть файл

@ -0,0 +1,35 @@
<html><head></head><body>
<html>
<head>
<script>
function show() {
document.getElementById("div1").setAttribute("value","visible");
}
function hide() {
document.getElementById("div1").setAttribute("value","hidden");
}
</script>
<style>
div[id="div1"][value="hidden"] {
background-color: blue;
visibility: hidden;
}
div[id="div1"][value="visible"] {
background-color: red;
}
</style>
</head>
<body>
<div id="div1" value="hidden">
this is text
<button> foo </button>
<iframe src="http://www.yahoo.com">
</div>
<button onclick="show(this)">show</button>
<button onclick="hide(this)">hide</button>
</body>
</html>

Просмотреть файл

@ -0,0 +1,8 @@
<HTML>
<HEAD>
<TITLE>Bug 16346</TITLE>
</HEAD>
<BODY>
<iframe src="http://www.mozilla.org/" scrolling="no">
</BODY>
</HTML>

Просмотреть файл

@ -0,0 +1,5 @@
<HTML>
<BODY>
<IFRAME SRC="bar.html" STYLE="overflow:hidden;">
</BODY>
</HTML>

Просмотреть файл

@ -0,0 +1,6 @@
<HTML>
<BODY>
<TABLE HEIGHT=100%></TABLE>
Bar
</BODY>
</HTML>

Просмотреть файл

@ -1 +1,5 @@
file://s:/mozilla/layout/html/tests/frameset/bugs/bug5437.html
file:///s|/mozilla/layout/html/tests/frameset/bugs/0003943_noscript.html
file:///s|/mozilla/layout/html/tests/frameset/bugs/0004849.html
file:///s|/mozilla/layout/html/tests/frameset/bugs/0005437.html
file:///s|/mozilla/layout/html/tests/frameset/bugs/0016346_noscroll.html
file:///s|/mozilla/layout/html/tests/frameset/bugs/0016346_overflow_hidden.html

Просмотреть файл

@ -0,0 +1,19 @@
#!/bin/sh
dirs="core bugs"
case $1 in
baseline|verify|clean)
;;
*)
echo "Usage: $0 baseline|verify|clean"
exit 1
;;
esac
for i in $dirs; do
cd $i
echo $cmd in $i
../runtests.sh $1
cd ..
done

Просмотреть файл

@ -0,0 +1,24 @@
#!/bin/sh
# create test file to use first; since we don't know where the tree
# is, and we need full pathnames in the file, we create it on the fly.
viewer=$MOZ_SRC/mozilla/dist/bin/viewer
testsfile=/tmp/$$-tests.txt
sed -e "s@file:///s|@file:$MOZ_SRC@" < file_list.txt > $testsfile
if test "$1"x = "baselinex"; then
rm -r -f baseline
mkdir baseline
$viewer -o baseline/ -f $testsfile
elif test "$1"x = "verifyx"; then
rm -r -f verify
mkdir verify
$viewer -o verify/ -rd baseline/ -f $testsfile
elif test "$1"x = "cleanx"; then
rm -r -f verify baseline
else
echo "Usage: $0 baseline|verify|clean"
fi
rm -f $testsfile