Package

japgolly.scalajs.react

test

Permalink

package test

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. test
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ChangeEventData(value: String = "", defaultPrevented: Boolean = false) extends Product with Serializable

    Permalink
  2. sealed trait ComponentClass extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  3. final type ComponentM = ReactComponentM_[TopNode]

    Permalink
  4. abstract class ComponentTester[P, S, B, N <: TopNode] extends AnyRef

    Permalink

    Renders a component into the document so that

    Renders a component into the document so that

    - you can easily change props and/or state. - it is unmounted when the test is over.

    Since

    0.11.0

  5. case class KeyboardEventData(key: String = "", location: Double = 0, altKey: Boolean = false, ctrlKey: Boolean = false, metaKey: Boolean = false, shiftKey: Boolean = false, repeat: Boolean = false, locale: String = "", keyCode: Int = 0, charCode: Int = 0, which: Int = 0, defaultPrevented: Boolean = false) extends Product with Serializable

    Permalink
  6. class MockRouterCtl[P] extends RouterCtl[P]

    Permalink

    Mock RouterCtl that does nothing but record events.

    Mock RouterCtl that does nothing but record events.

    Call events() to inspect recorded events, and clear() to clear them.

  7. case class MouseEventData(screenX: Double = 0, screenY: Double = 0, clientX: Double = 0, clientY: Double = 0, pageX: Double = 0, pageY: Double = 0, altKey: Boolean = false, ctrlKey: Boolean = false, metaKey: Boolean = false, shiftKey: Boolean = false, button: Int = 0, buttons: Int = 0, defaultPrevented: Boolean = false) extends Product with Serializable

    Permalink
  8. trait ObjectWithStateVar[A] extends Object

    Permalink

    A JS object with a state variable.

    A JS object with a state variable.

    Annotations
    @RawJSType() @native()
  9. sealed trait ReactOrDomNode extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  10. implicit final class ReactTestExt_Mounted[N <: TopNode] extends AnyVal

    Permalink
    Annotations
    @inline()
  11. trait ReactTestUtils extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  12. implicit final class ReactTestUtilsScalaExt extends AnyVal

    Permalink
  13. class ReactTestVar[A] extends AnyRef

    Permalink

    Houses a variable and provides React-like access to it.

    Houses a variable and provides React-like access to it.

    It can be used to mock an ExternalVar[A], a ReusableVar[A] and a CompState.Access[A].

    It also keeps a log of changes, accessible via .history().

    A

    The variable type.

    Since

    0.11.0

  14. trait Simulate extends Object

    Permalink
    Annotations
    @RawJSType() @native()
  15. class Simulation extends AnyRef

    Permalink

    Allows composition and abstraction of ReactTestUtils.Simulate procedures.

Value Members

  1. object ComponentTester

    Permalink
  2. object DebugJs

    Permalink
  3. object MockRouterCtl

    Permalink
  4. implicit final def RTUSChangeEventData(d: ChangeEventData): Object

    Permalink
    Annotations
    @inline()
  5. implicit final def RTUSKeyboardEventData(d: KeyboardEventData): Object

    Permalink
    Annotations
    @inline()
  6. implicit final def RTUSMouseEventData(d: MouseEventData): Object

    Permalink
    Annotations
    @inline()
  7. object ReactTestUtils extends Object with ReactTestUtils

    Permalink

    https://facebook.github.io/react/docs/test-utils.html

    https://facebook.github.io/react/docs/test-utils.html

    Annotations
    @native() @JSName( "React.addons.TestUtils" )
  8. object ReactTestVar

    Permalink
  9. object Simulation

    Permalink
  10. object WithExternalCompStateAccess

    Permalink

    Allows you to test a component that requires access to some external component state.

    Allows you to test a component that requires access to some external component state.

    Since

    0.11.0

  11. implicit final def autoComponentClassFromScalaComponent(c: ReactComponentC[_, _, _, _]): ComponentClass

    Permalink
    Annotations
    @inline()
  12. implicit final def autoReactOrDomNodeM[N <: TopNode](c: ReactComponentM_[N]): ReactOrDomNode

    Permalink
    Annotations
    @inline()
  13. implicit final def autoReactOrDomNodeN(n: TopNode): ReactOrDomNode

    Permalink
    Annotations
    @inline()
  14. implicit final def autoReactOrDomNodeU(c: ReactElement): ReactOrDomNode

    Permalink
    Annotations
    @inline()
  15. implicit final def autoUnboxRefsInTests[T <: TopNode](r: UndefOr[ReactComponentM_[T]]): ReactComponentM_[T]

    Permalink
    Annotations
    @inline()
  16. implicit final def autoUnboxRefsInTestsC[T <: TopNode](r: UndefOr[ReactComponentM_[T]]): ReactOrDomNode

    Permalink
    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped