org.scalajs.jsenv.phantomjs.PhantomJSEnv

AsyncPhantomRunner

class AsyncPhantomRunner extends AsyncExtRunner with AbstractPhantomRunner

Attributes
protected
Linear Supertypes
AbstractPhantomRunner, PhantomJSEnv.AsyncExtRunner, AsyncJSRunner, PhantomJSEnv.AbstractExtRunner, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncPhantomRunner
  2. AbstractPhantomRunner
  3. AsyncExtRunner
  4. AsyncJSRunner
  5. AbstractExtRunner
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncPhantomRunner(classpath: CompleteClasspath, code: VirtualJSFile, logger: Logger, console: JSConsole)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def await(atMost: Duration): Unit

    Await completion of the started Run for the duration specified by atMost.

    Await completion of the started Run for the duration specified by atMost. Strictly equivalent to:

    Await.result(future, atMost)
    Definition Classes
    AsyncJSRunner
  8. final def await(): Unit

    Await completion of the started Run.

    Await completion of the started Run. Strictly equivalent to

    Await.result(future, Duration.Inf)
    Definition Classes
    AsyncJSRunner
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def createTmpLauncherFile(): File

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunner
  11. def createTmpWebpage(): File

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunner
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def future: Future[Unit]

    A future that completes when the associated run has terminated.

    A future that completes when the associated run has terminated.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getJSFiles(): Seq[VirtualJSFile]

    Get all files that are passed to VM (libraries and code)

    Get all files that are passed to VM (libraries and code)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  18. def getLibJSFiles(): Seq[VirtualJSFile]

    Get files that are a library (i.

    Get files that are a library (i.e. that do not run anything)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  19. def getVMArgs(): Seq[String]

    VM arguments excluding executable.

    VM arguments excluding executable. Override to adapt. Overrider is responsible to add additionalArgs.

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunnerAbstractExtRunner
  20. def getVMEnv(): Map[String, String]

    VM environment.

    VM environment. Override to adapt.

    Default is sys.env and additionalEnv

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def initFiles(): Seq[VirtualJSFile]

    PhantomJS doesn't support Function.

    PhantomJS doesn't support Function.prototype.bind. We polyfill it. https://github.com/ariya/phantomjs/issues/10522

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunnerAbstractExtRunner
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def isRunning(): Boolean

    Checks whether this async runner is still running.

    Checks whether this async runner is still running. Strictly equivalent to

    !future.isCompleted
    Definition Classes
    AsyncJSRunner
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. final def pipeToConsole(in: InputStream, console: JSConsole): Unit

    pipe lines from input stream to JSConsole

    pipe lines from input stream to JSConsole

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  29. final def pipeVMData(vmInst: Process): Unit

    Pipe stdin and stdout from/to VM

    Pipe stdin and stdout from/to VM

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  30. final def sendJS(files: Seq[VirtualJSFile], out: Writer): Unit

    send a bunch of JS files to a writer

    send a bunch of JS files to a writer

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  31. final def sendJS(files: Seq[VirtualJSFile], out: OutputStream): Unit

    send a bunch of JS files to an output stream

    send a bunch of JS files to an output stream

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  32. def sendVMStdin(out: OutputStream): Unit

    Sends required data to VM Stdin (can throw)

    Sends required data to VM Stdin (can throw)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  33. def start(): Future[Unit]

    Start the associated run and returns a Future that completes when the run terminates.

    Start the associated run and returns a Future that completes when the run terminates. The returned Future is equivalent to the one returned by future.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  34. def startVM(): Process

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  35. def stop(): Unit

    Abort the associated run

    Abort the associated run

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def waitForVM(vmInst: Process): Unit

    Wait for the VM to terminate, verify exit code

    Wait for the VM to terminate, verify exit code

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  42. def writeCodeLauncher(code: VirtualJSFile, out: Writer): Unit

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunner
  43. def writeJSFile(file: VirtualJSFile, writer: Writer): Unit

    In phantom.

    In phantom.js, we include JS using HTML

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunnerAbstractExtRunner
  44. def writeWebpageLauncher(out: Writer): Unit

    Attributes
    protected
    Definition Classes
    AbstractPhantomRunner

Inherited from AbstractPhantomRunner

Inherited from PhantomJSEnv.AsyncExtRunner

Inherited from AsyncJSRunner

Inherited from PhantomJSEnv.AbstractExtRunner

Inherited from AnyRef

Inherited from Any

Ungrouped