Merge the new GUI tests from SOC2010_GUI_TEST branch.
Add a lot of tests for many wx GUI classes. Add tests using the new wxUIActionSimulator class but disable them under OS X as too many of them currently fail there. Refactor the test suite to make organizing the existing tests and adding the new ones easier. Improve documentation using the information gathered while testing the classes. Also update the documentation of the testing system itself. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,10 +14,11 @@
|
||||
// abstract base class testing wxTextEntry methods
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class TextEntryTestCase : public CppUnit::TestCase
|
||||
class TextEntryTestCase
|
||||
{
|
||||
public:
|
||||
TextEntryTestCase() { }
|
||||
virtual ~TextEntryTestCase() { }
|
||||
|
||||
protected:
|
||||
// this function must be overridden by the derived classes to return the
|
||||
@@ -38,13 +39,21 @@ protected:
|
||||
CPPUNIT_TEST( TextChangeEvents ); \
|
||||
CPPUNIT_TEST( Selection ); \
|
||||
CPPUNIT_TEST( InsertionPoint ); \
|
||||
CPPUNIT_TEST( Replace )
|
||||
CPPUNIT_TEST( Replace ); \
|
||||
WXUISIM_TEST( Editable ); \
|
||||
CPPUNIT_TEST( Hint ); \
|
||||
CPPUNIT_TEST( CopyPaste ); \
|
||||
CPPUNIT_TEST( UndoRedo )
|
||||
|
||||
void SetValue();
|
||||
void TextChangeEvents();
|
||||
void Selection();
|
||||
void InsertionPoint();
|
||||
void Replace();
|
||||
void Editable();
|
||||
void Hint();
|
||||
void CopyPaste();
|
||||
void UndoRedo();
|
||||
|
||||
private:
|
||||
// Selection() test helper: verify that selection is as described by the
|
||||
@@ -60,7 +69,7 @@ private:
|
||||
// wxChoice part of the control, not the selected text
|
||||
virtual void CheckStringSelection(const char *sel);
|
||||
|
||||
DECLARE_NO_COPY_CLASS(TextEntryTestCase)
|
||||
wxDECLARE_NO_COPY_CLASS(TextEntryTestCase);
|
||||
};
|
||||
|
||||
#endif // _WX_TESTS_CONTROLS_TEXTENTRYTEST_H_
|
||||
|
Reference in New Issue
Block a user