dcone%netscape.com c6d01d8b66 Not part of the build. Adding of files from the Layout-Debug object.
git-svn-id: svn://10.0.0.236/trunk@116430 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 22:08:59 +00:00

55 lines
1.2 KiB
HTML

<HTML>
<HEAD>
<TITLE>Debug Plug-in Test</TITLE>
</HEAD>
<BODY>
<center>
<h1> XPConnect Scriptable Debug Plug-in </h1>
</center>
This page contains a testcase which demonstrates the work of scriptable
plug-in with Mozilla. This example plug-in has no native GUI and does not
draw anything in the plugin window. Clicking on the button will result in calling
native plugin method from JavaScript. Show Version will instruct the plug-in
to retrieve the Mozilla user agent string and return it to JavaScript to show
in the alert box.
<br><br>
<center>
<embed type="application/debug-plugin" width=1 height=1 hidden="true"><br>
<script>
var embed = document.embeds[0];
function DumpFrames()
{
var filedirectory = "file:///S|/mozilla/layout/html/tests/block";
embed.StartDirectorySearch(filedirectory);
do {
filename=embed.GetNextFileInDirectory();
alert(filename);
outputfilename = filename.replace (".html",".tst");
alert(outputfilename);
//var thewindow = window.open(filetopen);
//embed.DumpLayout(thewindow,"s:/tests","filename");
} while (filename!=null)
}
</script>
<br>
<form name="formname">
<input type=button value="DumpFrames" onclick='DumpFrames()'>
</form>
</center>
</BODY>
</HTML>