DefaultWebGoldenComparator class
An unsupported WebGoldenComparator that exists for API compatibility.
- Inheritance
-
- Object
- WebGoldenComparator
- DefaultWebGoldenComparator
Constructors
- DefaultWebGoldenComparator(Uri _)
- This is provided to prevent warnings from the analyzer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compare(
double width, double height, Uri golden) → Future< bool> -
Compares the rendered pixels of size
width
xheight
that is being rendered on the top left of the screen against the golden file identified bygolden
.override -
compareBytes(
Uint8List bytes, Uri golden) → Future< bool> -
Compares the pixels of decoded png
bytes
against the golden file identified bygolden
.override -
getTestUri(
Uri key, int? version) → Uri -
Returns a new golden file Uri to incorporate any
version
number with thekey
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
double width, double height, Uri golden) → Future< void> -
Updates the golden file identified by
golden
with rendered pixels ofwidth
xheight
.override -
updateBytes(
Uint8List bytes, Uri golden) → Future< void> -
Compares the pixels of decoded png
bytes
against the golden file identified bygolden
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited