PureMVC Architects Lounge

PureMVC Manifold => Demos and Utils => Topic started by: puremvc on March 07, 2008, 03:52:56



Title: PureMVC AS3 Standard Version Unit Tests
Post by: puremvc on March 07, 2008, 03:52:56
These are the Unit Tests for the PureMVC Framework for AS3 - Standard Version

The demo has historically been located here:http://trac.puremvc.org/PureMVC_AS3_UnitTests
The project has been moved here: https://github.com/PureMVC/puremvc-as3-standard-unittests/wiki

The author is Cliff Hall.


Title: Re: PureMVC AS3 Unit Tests
Post by: puremvc on March 17, 2008, 03:58:58
2.0.2 of the AS3 Standard Version has been released. The unit test changes are:

  * The addition of the core/ControllerTestCommand2.as 
  * The modification of the core/ControllerTestVO.as to initialize input and result values to 0
  * The addition of testReregisterAndExecuteCommand to ControllerTest.

We now test that when a Command is re-registered that it isn't fired twice. This involves, minimally, registration with the controller but notification via the View, rather than direct execution of  the Controller's executeCommand method as is done in testRegisterAndRemove.

The bug under test was fixed in AS3 Standard Version 2.0.2. If you run the unit tests with 2.0.1 this new test will fail.

-=Cliff>


Title: Re: PureMVC AS3 Unit Tests
Post by: puremvc on March 17, 2008, 06:42:17
2.0.3 of the framework was release but only required replacing an interface method, and did not require a unit test modification, so the 2.0.2 unit tests are still valid for 2.0.3.

-=Cliff>