ComparisonResult class

The result of a pixel comparison test.

The ComparisonResult will always indicate if a test has passed. The optional error and diffs parameters provide further information about the result of a failing test.

Constructors

ComparisonResult({@required bool passed, String error, Map<String, Object> diffs})
Creates a new ComparisonResult for the current test.

Properties

diffs Map<String, Object>
Map containing differential images to illustrate found variants in pixel values in the execution of the pixel test.
final
error String
Error message used to describe the cause of the pixel comparison failure.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
passed bool
Indicates whether or not a pixel comparison test has failed. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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