]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/richtextctrltest.cpp
proper default for iphone
[wxWidgets.git] / tests / controls / richtextctrltest.cpp
index e30c91d0853d9c784893e79d1719980977b90e6f..8f704b934ca265f73ac3e87280dc68c9d32c9295 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxRichTextCtrl unit test
 // Author:      Steven Lamerton
 // Created:     2010-07-07
-// RCS-ID:      $Id$
 // Copyright:   (c) 2010 Steven Lamerton
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -881,6 +880,12 @@ void RichTextCtrlTestCase::Table()
         }
     }
 
+    // Test ClearTable()
+    table->ClearTable();
+    CPPUNIT_ASSERT_EQUAL(0, table->GetCells().GetCount());
+    CPPUNIT_ASSERT_EQUAL(0, table->GetColumnCount());
+    CPPUNIT_ASSERT_EQUAL(0, table->GetRowCount());
+
     m_rich->Clear();
     m_rich->SetFocusObject(NULL);
 }