Squirt 3.21
GuiTestShape Class Referenceabstract

Abstract class to test shapes in a panel. More...

Public Member Functions

public int assertAttributes (const mapping &referenceAttributes, dyn_string &fails)
 Checks whether current shape attributes match reference attributes. More...
 
public string toString ()
 Returns a readable shape identifier for logs and assertions. More...
 
public void showAttention (const string &state)
 Shows a temporary visual attention marker for the test shape. More...
 
public mapping getCurrentAttributes ()=0
 Returns the current attributes of the wrapped shape. More...
 

Protected Attributes

protected shape testShape
 Holder to real shape.
 

Detailed Description

Abstract class to test shapes in a panel.

Attention
This documentation is created with the help of an artificial intelligence.

Member Function Documentation

◆ assertAttributes()

public int GuiTestShape::assertAttributes ( const mapping &  referenceAttributes,
dyn_string &  fails 
)

Checks whether current shape attributes match reference attributes.

Parameters
referenceAttributesExpected shape attributes.
failsCollected mismatch messages.
Returns
0 when all attributes match, otherwise -1.

◆ getCurrentAttributes()

◆ showAttention()

public void GuiTestShape::showAttention ( const string &  state)

Shows a temporary visual attention marker for the test shape.

Parameters
stateVisual state indicator, e.g. OK or FAIL.

◆ toString()

public string GuiTestShape::toString ( )

Returns a readable shape identifier for logs and assertions.

Returns
Shape name with optional name path.

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