Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::repro::ReproExpectation Struct Reference

Human-reviewed expectation metadata for important replay fixtures. More...

#include "donner/editor/repro/ReproFile.h"

Public Attributes

ReproExpectationProofKind proofKind = ReproExpectationProofKind::PresentedPixels
 Kind of proof this fixture expectation encodes.
int leftMouseDownOrdinal = 0
 Left-mouse-down ordinal that identifies the representative click.
int frameOffsetAfterLeftMouseDown = 0
 Frame offset after the representative left-mouse-down.
int minFrameIndex = 0
 Inclusive accepted frame window for the representative presented frame.
int maxFrameIndex = 0
 Inclusive upper bound for the representative presented frame.
std::string targetSelector
 CSS selector for the element whose interaction the fixture represents.
std::string cropMode
 Crop mode to use when producing human-reviewable screenshots.
std::optional< ReproExpectedCrop > cropRect
 Optional crop inside the selected crop mode.
std::optional< int > activeFrameIndex
 Active drag frame that should be captured before mouseup.
std::optional< int > comparisonFrameIndex
 Frame to compare against the active frame.
std::optional< std::string > expectedSelectionLabel
 Expected final selection label for selection/liveness fixtures.
std::optional< int > statusStartFrameIndex
 First frame in a status-liveness assertion window.
std::optional< int > statusMaxFrameIndex
 Last frame in a status-liveness assertion window.
std::optional< std::string > forbiddenStatusSubstring
 Status substring that must not persist through the assertion window.

Friends

bool operator== (const ReproExpectation &lhs, const ReproExpectation &rhs)=default
 Compare two curated replay expectations.

Detailed Description

Human-reviewed expectation metadata for important replay fixtures.

◆ operator==

bool operator== ( const ReproExpectation & lhs,
const ReproExpectation & rhs )
friend

Compare two curated replay expectations.

Parameters
lhsFirst expectation.
rhsSecond expectation.
Returns
True when every expected field matches.

The documentation for this struct was generated from the following file: