Trait

com.raquo.domtestutils.scalatest

MountSpec

Related Doc: package scalatest

Permalink

trait MountSpec extends TestSuite with MountOps

Linear Supertypes
MountOps, TestSuite, Suite, Serializable, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MountSpec
  2. MountOps
  3. TestSuite
  4. Suite
  5. Serializable
  6. Serializable
  7. Assertions
  8. TripleEquals
  9. TripleEqualsSupport
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AssertionsHelper extends AnyRef

    Permalink
    Definition Classes
    Assertions
  2. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. trait NoArgTest extends () ⇒ Outcome with TestData

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  7. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  8. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  9. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  12. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  13. macro def assertCompiles(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  14. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  15. def assertEmptyContainer(clue: String): Unit

    Permalink
    Definition Classes
    MountOps
  16. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  17. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  18. def assertRootNodeMounted(clue: String): Unit

    Permalink
    Definition Classes
    MountOps
  19. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  20. macro def assertTypeError(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  21. val assertionsHelper: AssertionsHelper

    Permalink
    Definition Classes
    Assertions
  22. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  23. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  24. def cancel(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  25. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  26. def cancel(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  27. def cancel()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  28. def clearDOM(): Unit

    Permalink

    Remove all traces of previous tests from the DOM: Unmount the root node and remove the container from the DOM

    Remove all traces of previous tests from the DOM: Unmount the root node and remove the container from the DOM

    Definition Classes
    MountOps
  29. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. var containerNode: Element

    Permalink

    Container element that will hold the root node as a child.

    Container element that will hold the root node as a child. Container is mounted as a child of <body> element

    Definition Classes
    MountOps
  31. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  32. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  33. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  34. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  35. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  36. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  37. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  38. def createContainer(): Element

    Permalink
    Definition Classes
    MountOps
  39. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  40. val defaultMountedElementClue: String

    Permalink
    Definition Classes
    MountOps
  41. def doAssert(condition: Boolean, message: String): Unit

    Permalink

    If condition is false, fail the test with a given message This method exists for compatibility with different test frameworks.

    If condition is false, fail the test with a given message This method exists for compatibility with different test frameworks.

    Definition Classes
    MountSpecMountOps
  42. def doFail(message: String): Nothing

    Permalink

    Fail the test with a given message This method exists for compatibility with different test frameworks.

    Fail the test with a given message This method exists for compatibility with different test frameworks.

    Definition Classes
    MountSpecMountOps
  43. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. def expectNode(actualNode: Node, expectedNode: ExpectedNode, clue: String = mountedElementClue): Unit

    Permalink

    Check that a given node matches the provided description.

    Check that a given node matches the provided description. Call doFail with an error message if the test fails.

    Definition Classes
    MountOps
  46. def expectNode(expectedNode: ExpectedNode): Unit

    Permalink

    Check that the root node matches the provided description.

    Check that the root node matches the provided description. Call doFail with an error message if the test fails.

    Definition Classes
    MountOps
  47. def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    Suite
  48. def fail(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  49. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  50. def fail(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  51. def fail()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  52. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  53. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  54. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  55. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T

    Permalink
    Definition Classes
    Assertions
  56. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  57. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  58. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  59. def mount(clue: String, node: Node): Unit

    Permalink

    Inject the root node into the DOM – alternative argument order for convenience

    Inject the root node into the DOM – alternative argument order for convenience

    Definition Classes
    MountOps
  60. def mount(node: Node): Unit

    Permalink

    Inject the root node into the DOM – with default clue Note: defaultMountedElementClue should not be made a default value on the above mount method because that prevents users from defining their own mount methods that accept default arguments ("multiple overloaded alternatives of method mount define default arguments") error

    Inject the root node into the DOM – with default clue Note: defaultMountedElementClue should not be made a default value on the above mount method because that prevents users from defining their own mount methods that accept default arguments ("multiple overloaded alternatives of method mount define default arguments") error

    Definition Classes
    MountOps
  61. def mount(node: Node, clue: String): Unit

    Permalink

    Inject the root node into the DOM

    Inject the root node into the DOM

    Definition Classes
    MountOps
  62. var mountedElementClue: String

    Permalink

    Prefix to add to error messages – useful to differentiate between different mount() calls within one test

    Prefix to add to error messages – useful to differentiate between different mount() calls within one test

    Definition Classes
    MountOps
  63. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    Suite
  65. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  67. def pending: Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  68. def pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  69. def rerunner: Option[String]

    Permalink
    Definition Classes
    Suite
  70. def resetDOM(): Unit

    Permalink

    Clear the DOM and create a new container.

    Clear the DOM and create a new container. This should be called before each test.

    Definition Classes
    MountOps
  71. def rootNode: Node

    Permalink

    Root node is the node that we test in expectNode.

    Root node is the node that we test in expectNode. It is the only child of the containerNode element

    Definition Classes
    MountOps
  72. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    Suite
  73. def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  74. def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite → Suite
  75. def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  76. val styleName: String

    Permalink
    Definition Classes
    Suite
  77. final val succeed: Assertion

    Permalink
    Definition Classes
    Assertions
  78. def suiteId: String

    Permalink
    Definition Classes
    Suite
  79. def suiteName: String

    Permalink
    Definition Classes
    Suite
  80. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  81. def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    Suite
  82. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    Suite
  83. def testNames: Set[String]

    Permalink
    Definition Classes
    Suite
  84. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  85. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  86. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  87. def unmount(): Unit

    Permalink

    Remove root node from the DOM

    Remove root node from the DOM

    Definition Classes
    MountOps
  88. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions
  92. def withFixture(test: NoArgTest): Outcome

    Permalink

    Note: we use withFixture instead of beforeEach/afterEach because ScalaTest obscures error messages reported from the latter.

    Note: we use withFixture instead of beforeEach/afterEach because ScalaTest obscures error messages reported from the latter.

    Definition Classes
    MountSpec → TestSuite

Deprecated Value Members

  1. def trap[T](f: ⇒ T): Throwable

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest

Inherited from MountOps

Inherited from TestSuite

Inherited from Suite

Inherited from Serializable

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped