TestMessage class

Message associated with the test state. Can be linked to a specific source range -- useful for assertion failures, for example.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

TestMessage(Object message)
factory

Properties

actualOutput String

Available on TestMessage, provided by the TestMessage$Typings extension

Actual test output. If given with {@link TestMessage.expectedOutput expectedOutput }, a diff view will be shown.
getter/setter pair
expectedOutput String

Available on TestMessage, provided by the TestMessage$Typings extension

Expected test output. If given with {@link TestMessage.actualOutput actualOutput }, a diff view will be shown.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
location Location

Available on TestMessage, provided by the TestMessage$Typings extension

Associated file location.
getter/setter pair
message Object

Available on TestMessage, provided by the TestMessage$Typings extension

Human-readable message text to display.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

diff(Object message, String expected, String actual) TestMessage
Creates a new TestMessage that will present as a diff in the editor.