Object/Trait

japgolly.scalajs.react.test.raw

ReactAddonsTestUtils

Related Docs: trait ReactAddonsTestUtils | package raw

Permalink

object ReactAddonsTestUtils extends Object with ReactAddonsTestUtils

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

Annotations
@JSGlobal( "React.addons.TestUtils" ) @native()
Linear Supertypes
ReactAddonsTestUtils, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReactAddonsTestUtils
  2. ReactAddonsTestUtils
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Mounted = ReactComponent[_ <: Object, _ <: Object]

    Permalink
    Definition Classes
    ReactAddonsTestUtils

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Simulate: Simulate

    Permalink
    Definition Classes
    ReactAddonsTestUtils
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

    Permalink

    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.

    Definition Classes
    ReactAddonsTestUtils
  11. def findRenderedComponentWithType(tree: Mounted, c: ReactClassUntyped): Mounted

    Permalink

    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.

    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.

    Definition Classes
    ReactAddonsTestUtils
  12. def findRenderedDOMComponentWithClass(tree: Mounted, className: String): Mounted

    Permalink

    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.

    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.

    Definition Classes
    ReactAddonsTestUtils
  13. def findRenderedDOMComponentWithTag(tree: Mounted, tagName: String): Mounted

    Permalink

    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.

    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.

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

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

    Permalink
    Definition Classes
    Object
  16. def hashCode(): Int

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

    Permalink

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

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

    Definition Classes
    ReactAddonsTestUtils
  18. def isCompositeComponent(instance: ReactElement): Boolean

    Permalink

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

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

    Definition Classes
    ReactAddonsTestUtils
  19. def isCompositeComponentWithType(instance: ReactElement, c: ReactClassUntyped): Boolean

    Permalink

    The combination of isComponentOfType() and isCompositeComponent().

    The combination of isComponentOfType() and isCompositeComponent().

    Definition Classes
    ReactAddonsTestUtils
  20. def isDOMComponent(instance: ReactElement): Boolean

    Permalink

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

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

    Definition Classes
    ReactAddonsTestUtils
  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  23. def mockComponent[P <: Object, S <: Object](c: ReactClass[P, S], mockTagName: String = js.native): ReactClass[P, S]

    Permalink

    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.

    Definition Classes
    ReactAddonsTestUtils
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. def renderIntoDocument(element: ReactElement): ReactComponentUntyped

    Permalink

    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.

    Definition Classes
    ReactAddonsTestUtils
  29. def scryRenderedComponentsWithType(tree: Mounted, c: ReactClassUntyped): Array[Mounted]

    Permalink

    Finds all instances of components with type equal to componentClass.

    Finds all instances of components with type equal to componentClass.

    Definition Classes
    ReactAddonsTestUtils
  30. def scryRenderedDOMComponentsWithClass(tree: Mounted, className: String): Array[Mounted]

    Permalink

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

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

    Definition Classes
    ReactAddonsTestUtils
  31. def scryRenderedDOMComponentsWithTag(tree: Mounted, tagName: String): Array[Mounted]

    Permalink

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

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

    Definition Classes
    ReactAddonsTestUtils
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ReactAddonsTestUtils

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped