Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: PureMVC AS3 Standard Version Unit Tests  (Read 15245 times)
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« 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.
« Last Edit: September 23, 2012, 05:02:48 by puremvc » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 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>
Logged
Pages: [1]
Print