Package org.teavm.browserrunner
Class BrowserRunner
java.lang.Object
org.teavm.browserrunner.BrowserRunner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Constructor Summary
ConstructorsConstructorDescriptionBrowserRunner(File baseDir, String type, Function<BrowserRunParams, Process> browserRunner, boolean decodeStack) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcesschromeBrowser(BrowserRunParams runParams) voidcleanup()static ProcesscustomBrowser(BrowserRunParams runParams) static ProcessfirefoxBrowser(BrowserRunParams runParams) static Function<BrowserRunParams, Process> pickBrowser(String name) voidvoidrunTest(BrowserRunDescriptor run, BrowserOutputListener outputListener) Runs code in browser, passing every line it writes to stdout or stderr to the given listener instead of printing it to stdout/stderr of the current process.voidstart()voidstop()
-
Constructor Details
-
BrowserRunner
public BrowserRunner(File baseDir, String type, Function<BrowserRunParams, Process> browserRunner, boolean decodeStack)
-
-
Method Details
-
pickBrowser
-
start
public void start() -
stop
public void stop() -
runTest
- Throws:
IOException
-
runTest
public void runTest(BrowserRunDescriptor run, BrowserOutputListener outputListener) throws IOException Runs code in browser, passing every line it writes to stdout or stderr to the given listener instead of printing it to stdout/stderr of the current process.- Throws:
IOException
-
cleanup
public void cleanup() -
customBrowser
-
chromeBrowser
-
firefoxBrowser
-