This commit is contained in:
dsirnapalli%netscape.com 2001-09-05 19:25:49 +00:00
Родитель c31ea81bb3
Коммит a1ae395598
1 изменённых файлов: 57 добавлений и 2 удалений

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

@ -35,6 +35,10 @@
var mozload = "Fail";
var seamonkeyload = "Fail";
var pageload = "Fail";
var linkclick = "Fail";
var urlload = "Fail";
var win;
var newwin;
function constructResults()
{
@ -42,12 +46,16 @@ function constructResults()
var mozloadcolor = "white";
var seamonkeyloadcolor = "white";
var pageloadcolor = "white";
var linkclickcolor = "white";
var urlloadcolor = "white";
if (mozload == "Fail") mozloadcolor = "red";
if (seamonkeyload == "Fail") seamonkeyloadcolor = "red";
if (pageload == "Fail") pageloadcolor = "red";
if (linkclick == "Fail") linkclickcolor = "red";
if (urlload == "Fail") urlloadcolor = "red";
results = results + "<html>";
results = results + "<html><br>";
results = results + " <table bgcolor='white' border='4'>";
results = results + " <tbody>";
results = results + " <caption> <center> <b> Embed SmokeTest Results </b> </center> </caption>";
@ -63,6 +71,14 @@ function constructResults()
results = results + " <td> SeaMonkey Image Loaded[JPEG] </td>";
results = results + " <td>" + seamonkeyload + "</td>";
results = results + " </tr>";
results = results + " <tr bgcolor = '" + linkclickcolor + "'>";
results = results + " <td> Link Clicking </td>";
results = results + " <td>" + linkclick + "</td>";
results = results + " </tr>";
results = results + " <tr bgcolor = '" + urlloadcolor + "'>";
results = results + " <td> URL Loading </td>";
results = results + " <td>" + urlload + "</td>";
results = results + " </tr>";
results = results + " <tr bgcolor = '" + pageloadcolor + "'>";
results = results + " <td> PageLoaded </td>";
results = results + " <td>" + pageload + "</td>";
@ -97,6 +113,20 @@ function seamonkeyimageLoaded()
seamonkeyload = "Pass";
}
function link()
{
linkclick = "Pass";
win.close();
}
function urlloaded()
{
//alert(newwin.scrollbars.visible);
// if (newwin.scrollbars.visible == "true")
urlload = "Pass";
newwin.close();
}
function pageLoaded()
{
if (usingGecko == "False")
@ -116,11 +146,14 @@ function pageLoaded()
function testPage()
{
// simpletext
document.write('<center><b> This is a Test Page </b></center>');
// gif image
document.write('<center><img src="images/mozilla-banner.gif" height=58 width=600 onLoad = "mozillaimageLoaded();"></center>');
document.write('<br> <br>');
// simple table
document.write('<table bgcolor="blue" border="4">');
document.write('<tbody>');
document.write('<caption> <center> <b> Test Table </b> </center> </caption>');
@ -133,11 +166,33 @@ function testPage()
document.write(' <td> <b> Cell4 </b> </td>');
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</table><br>');
// jpg image
document.write('<center>');
document.write('<img SRC="images/seamonkey.jpg" height=183 width=300 onLoad = "seamonkeyimageLoaded();">');
document.write('</center>');
// link clicking
// document.write('<a href="http://www.mozilla.org"> Click here to go to Mozilla site </a><br><br>');
// var link = document.getElementsByTagName("a").item(0);
// if (link)
// {
// win = window.open(link);
// if (win)
// {
// win.onload = setTimeout("link();", 1000);
// }
// alert("one");
// }
// Loading new window
newwin = window.open("http://www.yahoo.com");
// alert(newwin.scrollbars.visible);
if (newwin)
{
newwin.onload = setTimeout("urlloaded();", 1000);
}
}
</script>