japgolly.scalajs.react.test

ReactTestUtils

Related Doc: package test

object ReactTestUtils extends Object

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

Annotations
@JSName( "React.addons.TestUtils" )
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReactTestUtils
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def Simulate: Simulate

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findAllInRenderedTree(tree: ComponentM, test: Function1[ComponentM, Boolean]): Array[ComponentM]

    Traverse all components in tree and accumulate all components where test(component) is true.

    Traverse all components in tree and accumulate all components where test(component) is true. This is not that useful on its own, but it's used as a primitive for other test utils.

  11. def findRenderedComponentWithType(tree: ComponentM, c: ComponentClass): ComponentM

    Same as scryRenderedComponentsWithType() but expects there to be one result and returns that one result, or throws exception if there is any other number of matches besides one.

  12. def findRenderedDOMComponentWithClass(tree: ComponentM, className: String): ComponentM

    Like scryRenderedDOMComponentsWithClass() but expects there to be one result, and returns that one result, or throws exception if there is any other number of matches besides one.

  13. def findRenderedDOMComponentWithTag(tree: ComponentM, tagName: String): ComponentM

    Like scryRenderedDOMComponentsWithTag() but expects there to be one result, and returns that one result, or throws exception if there is any other number of matches besides one.

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def isComponentOfType(instance: ReactElement, c: ComponentClass): Boolean

    Returns true if instance is an instance of a React componentClass.

  18. def isCompositeComponent(instance: ReactElement): Boolean

    Returns true if instance is a composite component (created with React.createClass())

  19. def isCompositeComponentWithType(instance: ReactElement, c: ComponentClass): Boolean

    The combination of isComponentOfType() and isCompositeComponent().

  20. def isDOMComponent(instance: ReactElement): Boolean

    Returns true if instance is a DOM component (such as a <div> or <span>).

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  23. def isTextComponent(instance: ReactElement): Boolean

    Returns true if instance is a plain text component.

  24. def mockComponent(c: ComponentClass, tagName: String = native): Object

    Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component.

    Pass a mocked component module to this method to augment it with useful methods that allow it to be used as a dummy React component. Instead of rendering as usual, the component will become a simple <div> (or other tag if mockTagName is provided) containing any provided children.

  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. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  29. def renderIntoDocument[P, S, B, N <: TopNode](c: ReactComponentU[P, S, B, N]): ReactComponentM[P, S, B, N]

  30. def renderIntoDocument(c: ReactElement): ComponentM

    Render a component into a detached DOM node in the document.

    Render a component into a detached DOM node in the document. This function requires a DOM.

  31. def scryRenderedComponentsWithType(tree: ComponentM, c: ComponentClass): Array[ComponentM]

    Finds all instances of components with type equal to componentClass.

  32. def scryRenderedDOMComponentsWithClass(tree: ComponentM, className: String): Array[ComponentM]

    Finds all instance of components in the rendered tree that are DOM components with the class name matching className.

  33. def scryRenderedDOMComponentsWithTag(tree: ComponentM, tagName: String): Array[ComponentM]

    Finds all instance of components in the rendered tree that are DOM components with the tag name matching tagName.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toLocaleString(): String

    Definition Classes
    Object
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def valueOf(): Any

    Definition Classes
    Object
  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( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped