[Ktutorial-commits] SF.net SVN: ktutorial:[260] trunk/ktutorial/ktutorial-editor/tests/unit/ data
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-09-26 18:49:59
|
Revision: 260 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=260&view=rev Author: danxuliu Date: 2010-09-26 18:49:53 +0000 (Sun, 26 Sep 2010) Log Message: ----------- Fix clone() tests in WaitForEvent and WaitForSignal, as the asserts were worthless if the attributes of the object to clone had the default value. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForEventTest.cpp trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForSignalTest.cpp Modified: trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForEventTest.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForEventTest.cpp 2010-09-26 18:27:32 UTC (rev 259) +++ trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForEventTest.cpp 2010-09-26 18:49:53 UTC (rev 260) @@ -82,6 +82,8 @@ void WaitForEventTest::testClone() { WaitForEvent waitForEvent; + waitForEvent.setReceiverName("The receiver name"); + waitForEvent.setEventName("The event name"); WaitForEvent* cloned = static_cast<WaitForEvent*>(waitForEvent.clone()); Modified: trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForSignalTest.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForSignalTest.cpp 2010-09-26 18:27:32 UTC (rev 259) +++ trunk/ktutorial/ktutorial-editor/tests/unit/data/WaitForSignalTest.cpp 2010-09-26 18:49:53 UTC (rev 260) @@ -82,6 +82,8 @@ void WaitForSignalTest::testClone() { WaitForSignal waitForSignal; + waitForSignal.setEmitterName("The emitter name"); + waitForSignal.setSignalName("The signal name"); WaitForSignal* cloned = static_cast<WaitForSignal*>(waitForSignal.clone()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |