diff --git a/embedding/qa/jstests/EmbedSmokeTest.txt b/embedding/qa/jstests/EmbedSmokeTest.txt
index f5a09e2f84f..b09c5bbfc15 100644
--- a/embedding/qa/jstests/EmbedSmokeTest.txt
+++ b/embedding/qa/jstests/EmbedSmokeTest.txt
@@ -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 + "";
+ results = results + "
";
results = results + "
";
results = results + " ";
results = results + " Embed SmokeTest Results ";
@@ -63,6 +71,14 @@ function constructResults()
results = results + " SeaMonkey Image Loaded[JPEG] | ";
results = results + " " + seamonkeyload + " | ";
results = results + " ";
+ results = results + " ";
+ results = results + " Link Clicking | ";
+ results = results + " " + linkclick + " | ";
+ results = results + "
";
+ results = results + " ";
+ results = results + " URL Loading | ";
+ results = results + " " + urlload + " | ";
+ results = results + "
";
results = results + " ";
results = results + " PageLoaded | ";
results = results + " " + pageload + " | ";
@@ -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(' This is a Test Page ');
+ // gif image
document.write('');
document.write('
');
+ // simple table
document.write('');
document.write('');
document.write(' Test Table ');
@@ -133,11 +166,33 @@ function testPage()
document.write(' Cell4 | ');
document.write('');
document.write('');
- document.write('
');
+ document.write('
');
+ // jpg image
document.write('');
document.write('');
document.write('');
+
+ // link clicking
+// document.write(' Click here to go to Mozilla site
');
+// 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);
+ }
}