private:
CPPUNIT_TEST_SUITE( SpinCtrlDoubleTestCase );
+ CPPUNIT_TEST( NoEventsInCtor );
WXUISIM_TEST( Arrows );
WXUISIM_TEST( Wrap );
CPPUNIT_TEST( Range );
CPPUNIT_TEST( Digits );
CPPUNIT_TEST_SUITE_END();
+ void NoEventsInCtor();
void Arrows();
void Wrap();
void Range();
wxDELETE(m_spin);
}
+void SpinCtrlDoubleTestCase::NoEventsInCtor()
+{
+ // Verify that creating the control does not generate any events. This is
+ // unexpected and shouldn't happen.
+ wxWindow* const parent = m_spin->GetParent();
+ delete m_spin;
+ m_spin = new wxSpinCtrlDouble;
+
+ EventCounter updated(m_spin, wxEVT_SPINCTRLDOUBLE);
+
+ m_spin->Create(parent, wxID_ANY, "",
+ wxDefaultPosition, wxDefaultSize, 0,
+ 0., 100., 17.);
+
+ CPPUNIT_ASSERT_EQUAL(0, updated.GetCount());
+}
+
void SpinCtrlDoubleTestCase::Arrows()
{
#ifndef __WXGTK__