gecko-dev/xpinstall/test/pre_checkin_trigger.html
sgehani%netscape.com 9968ec2518 *** NOT PART OF BUILD ***
Adding XPInstall smoke test to make publicly accessible through lxr.
2000-02-04 00:14:11 +00:00

60 lines
1.5 KiB
HTML

<HTML>
<!--
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code, released March
* 31, 1998.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1999
* Netscape Communications Corporation. All Rights Reserved.
*
* Contributors:
* Samir Gehani <sgehani@netscape.com>
-->
<HEAD>
<TITLE>XPInstall Pre-Checkin Trigger Test</TITLE>
<SCRIPT>
function xpinstallCallback(url, status)
{
if (status == 0)
msg = "XPInstall Test: PASSED\n";
else
msg = "XPInstall Test: FAILED\n";
dump(msg);
alert(msg);
}
</SCRIPT>
</HEAD>
<BODY>
<H3>XPInstall Pre-Checkin Trigger Test</H3>
<HR>
Click on the link below to execute the XPInstall pre-checkin test. <BR>
The test result (PASS or FAIL) will pop up in an alert after the test completes. <P>
<A HREF="javascript:
xpi={'XPInstall Pre-Checkin Test':'pre_checkin.xpi'};
InstallTrigger.install(xpi,xpinstallCallback);
">Test XPInstall</A>
</BODY>
</HTML>