Move this forward to leverage the THTTPD services of WebclientTestCase.

This commit is contained in:
edburns%acm.org 2004-10-26 19:33:15 +00:00
parent 14d1dbe196
commit 416da4356a

View File

@ -1,5 +1,5 @@
/*
* $Id: HistoryTest.java,v 1.2 2004/06/23 19:58:12 edburns%acm.org Exp $
* $Id: HistoryTest.java,v 1.3 2004/10/26 19:33:15 edburns%acm.org Exp $
*/
/*
@ -26,8 +26,6 @@
package org.mozilla.webclient;
import org.mozilla.util.THTTPD;
import junit.framework.TestSuite;
import junit.framework.TestResult;
import junit.framework.Test;
@ -55,30 +53,11 @@ public class HistoryTest extends WebclientTestCase {
}
public static Test suite() {
TestSuite result = new TestSuite() {
public void run(TestResult result) {
serverThread =
new THTTPD.ServerThread("LocalHTTPD",
new File (getBrowserBinDir() +
"/../../java/webclient/build.test"), -1);
serverThread.start();
serverThread.P();
super.run(result);
try {
BrowserControlFactory.appTerminate();
}
catch (Exception e) {
fail();
}
serverThread.stopRunning();
}
};
TestSuite result = createServerTestSuite();
result.addTestSuite(HistoryTest.class);
return (result);
}
static THTTPD.ServerThread serverThread;
static EventRegistration2 eventRegistration;
static CurrentPage2 currentPage = null;