org.scalajs.jsenv.test

Members list

Packages

Type members

Classlikes

abstract class JSEnvSuite(val config: JSEnvSuiteConfig)

Conformance test suite for any JSEnv implementation.

Conformance test suite for any JSEnv implementation.

Use with the JSEnvSuiteRunner.

Example:

import org.junit.runner.RunWith

@RunWith(classOf[JSEnvSuiteRunner])
class MyJSEnvSuite extends JSEnvSuite(JSEnvSuiteConfig(new MyJSEnv))

Attributes

See also

JSEnvSuiteConfig for details on the configuration.

Supertypes
class Object
trait Matchable
class Any
final class JSEnvSuiteConfig

Configuration for a JSEnvSuite.

Configuration for a JSEnvSuite.

Value parameters

awaitTimeout

Amount of time test cases wait for "things". This is deliberately not very well specified. Leave this as the default and increase it if your tests fail spuriously due to timeouts.

description

A human readable description of this configuration; defaults to JSEnv#name. This is only ever used in the parametrized JUnit test name. Can be customized if the same JSEnv is used with different configurations (e.g. Selenium with different browsers).

jsEnv

JSEnv under test.

supportsCom

Whether the JSEnv under test supports JSEnv#startWithCom.

supportsCommonJSModules

Whether the JSEnv under test supports JSEnv.Input.CommonJSModule.

supportsESModules

Whether the JSEnv under test supports JSEnv.Input.ESModule.

supportsScripts

Whether the JSEnv under test supports JSEnv.Input.Script.

supportsTimeout

Whether the JSEnv under test supports the JavaScript timeout methods (as defined in RawTimers).

terminateVMJSCode

A JavaScript expression that terminates the VM. If set, proper handling of VM termination is tested.

Attributes

See also

JSEnvSuite for usage.

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final class JSEnvSuiteRunner(root: Class[_], config: JSEnvSuiteConfig) extends Suite

Runner for a JSEnvSuite. May only be used on subclasses of JSEnvSuite.

Runner for a JSEnvSuite. May only be used on subclasses of JSEnvSuite.

Attributes

Supertypes
class Suite
class ParentRunner[Runner]
trait Sortable
trait Filterable
class Runner
trait Describable
class Object
trait Matchable
class Any
Show all