+void ClientSizeTestCase::ClientSizeNotNegative()
+{
+ wxWindow* w = new wxWindow(wxTheApp->GetTopWindow(), -1,
+ wxDefaultPosition, wxDefaultSize,
+ wxBORDER_THEME);
+ w->SetSize(wxSize(1,1));
+ const wxSize szw = w->GetClientSize();
+ CPPUNIT_ASSERT(szw.GetWidth() >= 0);
+ CPPUNIT_ASSERT(szw.GetHeight() >= 0);
+ w->Destroy();
+}
+