66 lines
1.0 KiB
HTML
66 lines
1.0 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>Debug Plug-in Test</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
|
|
<center>
|
|
<h1> XPConnect Scriptable Debug Plug-in </h1>
|
|
</center>
|
|
|
|
|
|
<br><br>
|
|
|
|
<center>
|
|
|
|
<embed type="application/debug-plugin" width=1 height=1 hidden="true"><br>
|
|
|
|
<script>
|
|
var embed = document.embeds[0];
|
|
var started = false;
|
|
var theWindow;
|
|
var outputfilename;
|
|
|
|
function crap()
|
|
{
|
|
|
|
alert("another function");
|
|
|
|
}
|
|
|
|
|
|
function DumpFrames(firsttime,filename)
|
|
{
|
|
var loadingFlag;
|
|
|
|
if ( firsttime ) {
|
|
alert("opening the document");
|
|
theWindow = window.open(filename,"dumpwindow");
|
|
outputfilename = filename.replace (".html",".tst");
|
|
}
|
|
|
|
loading = embed.DumpLayout(theWindow,"s:/tests","outputfilename");
|
|
|
|
if (loading != 0) {
|
|
window.setTimeout("DumpFrames(false)",5000);
|
|
alert("Waiting");
|
|
} else {
|
|
//theWindow.close();
|
|
alert("successful");
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<br>
|
|
<form name="baseform">
|
|
<input type="text" name="urlname">
|
|
<input type=button value="DumpFrames" onclick='DumpFrames(true,document.baseform.urlname.value)'>
|
|
</form>
|
|
|
|
</center>
|
|
|
|
</BODY>
|
|
</HTML>
|