]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/textentrytest.h
return URLs, not filenames, from wxFileSystem::FindFirst/FindNext() for the file...
[wxWidgets.git] / tests / controls / textentrytest.h
index db4058c2cb89f7f369e80e95f67e9afe13d7f488..88147720209caeccea31d304b85dc0c40ed644db 100644 (file)
@@ -37,18 +37,29 @@ protected:
         CPPUNIT_TEST( SetValue ); \
         CPPUNIT_TEST( TextChangeEvents ); \
         CPPUNIT_TEST( Selection ); \
-        CPPUNIT_TEST( InsertionPoint )
+        CPPUNIT_TEST( InsertionPoint ); \
+        CPPUNIT_TEST( Replace )
 
     void SetValue();
     void TextChangeEvents();
     void Selection();
     void InsertionPoint();
+    void Replace();
 
 private:
     // Selection() test helper: verify that selection is as described by the
     // function parameters
     void AssertSelection(int from, int to, const char *sel);
 
+    // helper of AssertSelection(): check that the text selected in the control
+    // is the given one
+    //
+    // this is necessary to disable testing this in wxComboBox test as it
+    // doesn't provide any way to access the string selection directly, its
+    // GetStringSelection() method returns the currently selected string in the
+    // wxChoice part of the control, not the selected text
+    virtual void CheckStringSelection(const char *sel);
+
     DECLARE_NO_COPY_CLASS(TextEntryTestCase)
 };