mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Move this forward to leverage the THTTPD services of WebclientTestCase.
This commit is contained in:
parent
14d1dbe196
commit
416da4356a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user