ScummVM API documentation
Testbed::GFXTestSuite Class Reference
Inheritance diagram for Testbed::GFXTestSuite:
Testbed::Testsuite

Public Member Functions

 GFXTestSuite ()
 
const char * getName () const override
 
const char * getDescription () const override
 
void prepare () override
 
- Public Member Functions inherited from Testbed::Testsuite
int getNumTests () const
 
int getNumTestsPassed () const
 
int getNumTestsSkipped () const
 
int getNumTestsFailed () const
 
void genReport () const
 
bool isEnabled () const
 
virtual void enable (bool flag)
 
bool enableTest (const Common::String &testName, bool enable)
 
void reset ()
 
void addTest (const Common::String &name, InvokingFunction f, bool isInteractive=true)
 
virtual void execute ()
 
const Common::Array< Test * > & getTestList ()
 
int getNumTestsEnabled ()
 

Static Public Member Functions

static void setCustomColor (uint r, uint g, uint b)
 
- Static Public Member Functions inherited from Testbed::Testsuite
static bool handleInteractiveInput (const Common::String &textToDisplay, const char *opt1="Yes", const char *opt2="No", OptionSelected result=kOptionLeft)
 
static void displayMessage (const Common::String &textToDisplay, const char *defaultButton="OK")
 
static Common::Rect writeOnScreen (const Common::String &textToDisplay, const Common::Point &pt, bool flag=false)
 
static void clearScreen (const Common::Rect &rect)
 
static void clearEntireScreen ()
 
static void clearScreen ()
 
static void clearScreen (bool flag)
 
static uint parseEvents ()
 
static void logPrintf (MSVC_PRINTF const char *s,...) GCC_PRINTF(1
 
static void static void logDetailedPrintf (MSVC_PRINTF const char *s,...) GCC_PRINTF(1
 
static void static void static Common::Point getDisplayRegionCoordinates ()
 
static uint getLineSeparation ()
 
static void updateStats (const char *prefix, const char *info, uint numTests, uint testNum, Common::Point pt)
 

Additional Inherited Members

- Protected Attributes inherited from Testbed::Testsuite
Common::Array< Test * > _testsToExecute
 List of tests to be executed.
 
int _numTestsPassed
 Number of tests passed.
 
int _numTestsExecuted
 Number of tests executed.
 
int _numTestsSkipped
 
bool _isTsEnabled
 

Constructor & Destructor Documentation

◆ GFXTestSuite()

Testbed::GFXTestSuite::GFXTestSuite ( )

The constructor for the GFXTestSuite For every test to be executed one must: 1) Create a function that would invoke the test 2) Add that test to list by executing addTest()

See also
addTest()

Member Function Documentation

◆ prepare()

void Testbed::GFXTestSuite::prepare ( )
overridevirtual

Testsuite state preparation code, like tweaking mouse cursors should go there

Reimplemented from Testbed::Testsuite.


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