You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(45) |
Apr
(7) |
May
(2) |
Jun
(5) |
Jul
|
Aug
(8) |
Sep
(49) |
Oct
(13) |
Nov
(11) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(13) |
Feb
(4) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(7) |
Dec
(1) |
2008 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(15) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2009 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <luk...@us...> - 2008-02-20 00:41:01
|
Revision: 184 http://asunit.svn.sourceforge.net/asunit/?rev=184&view=rev Author: lukebayes Date: 2008-02-19 16:40:51 -0800 (Tue, 19 Feb 2008) Log Message: ----------- Integrated Cruise Control JUnit XML Reporting Updated TestListener interface and methods that TestCase calls Updated XMLResultPrinter for more accurate result set Modified Paths: -------------- trunk/framework/as3/asunit/framework/Test.as trunk/framework/as3/asunit/framework/TestCase.as trunk/framework/as3/asunit/framework/TestListener.as trunk/framework/as3/asunit/framework/TestResult.as trunk/framework/as3/asunit/framework/TestSuite.as trunk/framework/as3/asunit/textui/ResultPrinter.as trunk/framework/as3/asunit/textui/TestRunner.as trunk/framework/as3/asunit/textui/XMLResultPrinter.as Added Paths: ----------- trunk/framework/as3/asunit/framework/TestMethod.as Modified: trunk/framework/as3/asunit/framework/Test.as =================================================================== --- trunk/framework/as3/asunit/framework/Test.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/framework/Test.as 2008-02-20 00:40:51 UTC (rev 184) @@ -7,8 +7,9 @@ function getName():String; function getTestMethods():Array; function toString():String; - function setResult(result:TestResult):void; + function setResult(result:TestListener):void; function run():void; + function runBare():void; function getCurrentMethod():String; function getIsComplete():Boolean; function setContext(context:DisplayObjectContainer):void; Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/framework/TestCase.as 2008-02-20 00:40:51 UTC (rev 184) @@ -1,19 +1,17 @@ package asunit.framework { import asunit.errors.AssertionFailedError; + import asunit.util.ArrayIterator; + import asunit.util.Iterator; import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.errors.IllegalOperationError; - import flash.utils.describeType; - import asunit.util.Iterator; - import asunit.util.ArrayIterator; - import flash.net.getClassByAlias; import flash.events.Event; + import flash.events.TimerEvent; import flash.utils.Timer; - import flash.events.TimerEvent; + import flash.utils.describeType; + import flash.utils.getDefinitionByName; import flash.utils.setTimeout; - import flash.utils.clearTimeout; - import flash.utils.getDefinitionByName; /** * A test case defines the fixture to run multiple tests. To define a test case<br> @@ -86,7 +84,7 @@ protected static const TEAR_DOWN:int = 3; protected static const DEFAULT_TIMEOUT:int = 1000; protected var fName:String; - protected var result:TestResult; + protected var result:TestListener; protected var testMethods:Array; protected var isComplete:Boolean; protected var context:DisplayObjectContainer; @@ -189,11 +187,11 @@ getResult().run(this); } - public function setResult(result:TestResult):void { + public function setResult(result:TestListener):void { this.result = result; } - protected function getResult():TestResult { + protected function getResult():TestListener { return (result == null) ? createResult() : result; } @@ -239,6 +237,7 @@ methodIsAsynchronous = false; if(currentState == PRE_SET_UP) { currentState = SET_UP; + getResult().startTestMethod(this, methodName); setUp(); // setUp may be async and change the state of methodIsAsynchronous } currentMethod = methodName; @@ -362,6 +361,7 @@ return; } if(!runSingle) { + getResult().endTestMethod(this, currentMethod); tearDown(); layoutManager.resetAll(); } Modified: trunk/framework/as3/asunit/framework/TestListener.as =================================================================== --- trunk/framework/as3/asunit/framework/TestListener.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/framework/TestListener.as 2008-02-20 00:40:51 UTC (rev 184) @@ -2,21 +2,34 @@ import asunit.errors.AssertionFailedError; public interface TestListener { + /** - * An error occurred. - */ - function addError(test:Test, t:Error):void; + * Run the provided Test. + */ + function run(test:Test):void; /** + * A test started. + */ + function startTest(test:Test):void; + /** * A failure occurred. */ function addFailure(test:Test, t:AssertionFailedError):void; /** + * An error occurred. + */ + function addError(test:Test, t:Error):void; + /** + * A test method has begun execution. + */ + function startTestMethod(test:Test, methodName:String):void; + /** + * A test method has completed. + */ + function endTestMethod(test:Test, methodName:String):void; + /** * A test ended. */ function endTest(test:Test):void; - /** - * A test started. - */ - function startTest(test:Test):void; } } \ No newline at end of file Added: trunk/framework/as3/asunit/framework/TestMethod.as =================================================================== --- trunk/framework/as3/asunit/framework/TestMethod.as (rev 0) +++ trunk/framework/as3/asunit/framework/TestMethod.as 2008-02-20 00:40:51 UTC (rev 184) @@ -0,0 +1,38 @@ +package asunit.framework { + + import flash.utils.getTimer; + + /** + * A <code>TestFailure</code> collects a failed test together with + * the caught exception. + * @see TestResult + */ + public class TestMethod { + protected var test:Test; + protected var method:String; + + private var _duration:Number; + private var start:Number; + + /** + * Constructs a TestMethod with a given Test and method name. + */ + public function TestMethod(test:Test, method:String) { + this.test = test; + this.method = method; + start = getTimer(); + } + + public function getName():String { + return method; + } + + public function endTest(test:Test):void { + _duration = (getTimer() - start) * .001; + } + + public function duration():Number { + return _duration; + } + } +} \ No newline at end of file Property changes on: trunk/framework/as3/asunit/framework/TestMethod.as ___________________________________________________________________ Name: svn:executable + * Modified: trunk/framework/as3/asunit/framework/TestResult.as =================================================================== --- trunk/framework/as3/asunit/framework/TestResult.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/framework/TestResult.as 2008-02-20 00:40:51 UTC (rev 184) @@ -2,9 +2,6 @@ import asunit.errors.AssertionFailedError; import asunit.errors.InstanceNotFoundError; - import flash.errors.IllegalOperationError; - import flash.events.EventDispatcher; - /** * A <code>TestResult</code> collects the results of executing * a test case. It is an instance of the Collecting Parameter pattern. @@ -14,7 +11,7 @@ * * @see Test */ - public class TestResult { + public class TestResult implements TestListener { protected var fFailures:Array; protected var fErrors:Array; protected var fListeners:Array; @@ -101,7 +98,7 @@ /** * Runs a TestCase. */ - public function run(test:TestCase):void { + public function run(test:Test):void { startTest(test); test.runBare(); } @@ -131,6 +128,25 @@ item.startTest(test); } } + + public function startTestMethod(test:Test, method:String):void { + var len:uint = fListeners.length; + var item:TestListener; + for(var i:uint; i < len; i++) { + item = TestListener(fListeners[i]); + item.startTestMethod(test, method); + } + } + + public function endTestMethod(test:Test, method:String):void { + var len:uint = fListeners.length; + var item:TestListener; + for(var i:uint; i < len; i++) { + item = TestListener(fListeners[i]); + item.endTestMethod(test, method); + } + } + /** * Informs the result that a test was completed. */ Modified: trunk/framework/as3/asunit/framework/TestSuite.as =================================================================== --- trunk/framework/as3/asunit/framework/TestSuite.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/framework/TestSuite.as 2008-02-20 00:40:51 UTC (rev 184) @@ -1,8 +1,9 @@ package asunit.framework { + import asunit.util.ArrayIterator; + import asunit.util.Iterator; + import flash.display.DisplayObjectContainer; import flash.events.Event; - import asunit.util.Iterator; - import asunit.util.ArrayIterator; /** * A <code>TestSuite</code> is a <code>Composite</code> of Tests. @@ -53,7 +54,7 @@ * Runs the tests and collects their result in a TestResult. */ public override function run():void { - var result:TestResult = getResult(); + var result:TestListener = getResult(); var test:Test; var itr:Iterator = getIterator(); while(itr.hasNext()) { Modified: trunk/framework/as3/asunit/textui/ResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/ResultPrinter.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/textui/ResultPrinter.as 2008-02-20 00:40:51 UTC (rev 184) @@ -6,16 +6,11 @@ import asunit.framework.TestResult; import asunit.runner.BaseTestRunner; import asunit.runner.Version; - - import flash.display.Shape; + import flash.display.Sprite; - import flash.display.Stage; - import flash.display.StageAlign; - import flash.display.StageScaleMode; import flash.events.*; import flash.text.TextField; import flash.text.TextFormat; - import flash.ui.Keyboard; import flash.utils.setTimeout; public class ResultPrinter extends Sprite implements TestListener { @@ -76,9 +71,14 @@ public function print(...args:Array):void { textArea.appendText(args.toString()); } - /* API for use by textui.TestRunner + + /** + * API for use by textui.TestRunner */ - + + public function run(test:Test):void { + } + public function printResult(result:TestResult, runTime:Number):void { printHeader(runTime); printErrors(result); @@ -174,27 +174,39 @@ } /** - * @see junit.framework.TestListener#addError(Test, Throwable) + * @see asunit.framework.TestListener#addError(Test, Throwable) */ public function addError(test:Test, t:Error):void { print("E"); } /** - * @see junit.framework.TestListener#addFailure(Test, AssertionFailedError) + * @see asunit.framework.TestListener#addFailure(Test, AssertionFailedError) */ public function addFailure(test:Test, t:AssertionFailedError):void { print("F"); } /** - * @see junit.framework.TestListener#endTest(Test) + * @see asunit.framework.TestListener#endTestMethod(test, testMethod); */ + public function startTestMethod(test:Test, methodName:String):void { + } + + /** + * @see asunit.framework.TestListener#endTestMethod(test, testMethod); + */ + public function endTestMethod(test:Test, methodName:String):void { + } + + /** + * @see asunit.framework.TestListener#endTest(Test) + */ public function endTest(test:Test):void { } /** - * @see junit.framework.TestListener#startTest(Test) + * @see asunit.framework.TestListener#startTest(Test) */ public function startTest(test:Test):void { var count:uint = test.countTestCases(); Modified: trunk/framework/as3/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as3/asunit/textui/TestRunner.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/textui/TestRunner.as 2008-02-20 00:40:51 UTC (rev 184) @@ -69,7 +69,6 @@ */ public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult { // fscommand("showmenu", "false"); - try { var instance:Test; if(testMethod != null) { Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2008-02-19 22:39:21 UTC (rev 183) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2008-02-20 00:40:51 UTC (rev 184) @@ -1,7 +1,9 @@ package asunit.textui { + import asunit.errors.AssertionFailedError; import asunit.framework.Test; import asunit.framework.TestFailure; + import asunit.framework.TestListener; import asunit.framework.TestResult; import flash.utils.Dictionary; @@ -9,7 +11,6 @@ public class XMLResultPrinter extends ResultPrinter { protected var results:Dictionary; - protected var currentResult:XMLTestResult; public function XMLResultPrinter() { results = new Dictionary(); @@ -17,12 +18,35 @@ override public function startTest(test:Test):void { super.startTest(test); - results[test.getName()] = new XMLTestResult(test); + var result:TestListener = new XMLTestResult(test); + results[test.getName()] = result; + result.startTest(test); } override public function endTest(test:Test):void { + super.endTest(test); results[test.getName()].endTest(test); } + + override public function startTestMethod(test:Test, methodName:String):void { + super.startTestMethod(test, methodName); + results[test.getName()].startTestMethod(test, methodName); + } + + override public function endTestMethod(test:Test, methodName:String):void { + super.endTestMethod(test, methodName); + results[test.getName()].endTestMethod(test, methodName); + } + + override public function addFailure(test:Test, t:AssertionFailedError):void { + super.addFailure(test, t); + results[test.getName()].addFailure(test); + } + + override public function addError(test:Test, t:Error):void { + super.addError(test, t); + results[test.getName()].addError(test); + } /* <testsuites> @@ -42,6 +66,7 @@ override public function printResult(result:TestResult, runTime:Number):void { super.printResult(result, runTime); +/* if(result.errorCount()) { var error:TestFailure; for each(error in result.errors()) { @@ -54,10 +79,12 @@ results[failure.failedTest().getName()].addFailure(failure); } } +*/ + trace("<XMLResultPrinter>"); trace("<?xml version='1.0' encoding='UTF-8'?>"); trace("<testsuites>"); - trace("<testsuite name='AsUnit Test Suite' errors='" + result.errorCount() + "' failures='" + result.failureCount() + "' tests='" + result.runCount() + "' time='" + elapsedTimeAsString(runTime) + "'>"); + trace("<testsuite name='AllTests' errors='" + result.errorCount() + "' failures='" + result.failureCount() + "' tests='" + result.runCount() + "' time='" + elapsedTimeAsString(runTime) + "'>"); var xmlTestResult:XMLTestResult; for each(xmlTestResult in results) { trace(xmlTestResult.toString()); @@ -72,59 +99,128 @@ import asunit.framework.Test; import asunit.framework.TestFailure; import flash.utils.getQualifiedClassName; -import flash.utils.getTimer; +import flash.utils.getTimer; +import asunit.framework.TestListener; +import asunit.errors.AssertionFailedError; +import asunit.framework.TestMethod; +import flash.utils.Dictionary; -class XMLTestResult { +class XMLTestResult implements TestListener { + private var _duration:Number; + private var start:Number; private var test:Test; private var testName:String; + private var failureHash:Dictionary; private var failures:Array; + private var errorHash:Dictionary; private var errors:Array; - private var start:Number; - private var duration:Number; + private var methodHash:Dictionary; + private var methods:Array; public function XMLTestResult(test:Test) { - start = getTimer(); this.test = test; testName = test.getName().split("::").join("."); failures = new Array(); + errors = new Array(); + methods = new Array(); + + failureHash = new Dictionary(); + errorHash = new Dictionary(); + methodHash = new Dictionary(); } + + public function startTest(test:Test):void { + start = getTimer(); + } - public function addFailure(failure:TestFailure):void { + public function run(test:Test):void { + } + + public function addError(test:Test, t:Error):void { + var failure:TestFailure = new TestFailure(test, t); + errors.push(failure); + errorHash[failure.failedMethod()] = failure; + } + + public function addFailure(test:Test, t:AssertionFailedError):void { + var failure:TestFailure = new TestFailure(test, t); failures.push(failure); + failureHash[failure.failedMethod()] = failure; } - + + public function startTestMethod(test:Test, methodName:String):void { + var method:TestMethod = new TestMethod(test, methodName); + methods.push(method); + methodHash[method.getName()] = method; + } + + public function endTestMethod(test:Test, methodName:String):void { + methodHash[methodName].endTest(test); + } + public function endTest(test:Test):void { - duration = (getTimer() - start) * .001; + _duration = (getTimer() - start) * .001; } - private function renderOpener(methodName:String):String { - return "<testcase classname='" + testName + "' name='" + methodName + "' time='" + duration + "'>\n"; + private function errorCount():int { + return errors.length; } - private function renderFailure(methodName:String):String { - var failure:TestFailure; - for each(failure in failures) { - if(failure.failedMethod() == methodName) { - return "<failure type='" + getQualifiedClassName(failure.thrownException()).split("::").join(".") + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; - } + private function failureCount():int { + return failures.length; + } + + private function duration():Number { + return _duration; + } + + private function renderSuiteOpener():String { + return "<testsuite name='" + testName + "' errors='" + errorCount() + "' failures='" + failureCount() + "' tests='" + methods.length + "' time='" + duration() + "'>\n"; + } + + private function renderTestOpener(methodName:String):String { + return "<testcase classname='" + testName + "' name='" + methodName + "' time='" + methodHash[methodName].duration() + "'>\n"; + } + + private function renderTestBody(method:String):String { + if(errorHash[method]) { + return renderError(errorHash[method]); } - return ''; + else if(failureHash[method]) { + return renderFailure(failureHash[method]); + } + else { + return ""; + } } - private function renderCloser():String { + private function renderError(failure:TestFailure):String { + return "<error type='" + getQualifiedClassName(failure.thrownException()).split("::").join(".") + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; + } + + private function renderFailure(failure:TestFailure):String { + return "<failure type='" + getQualifiedClassName(failure.thrownException()).split("::").join(".") + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; + } + + private function renderTestCloser():String { return '</testcase>\n'; } + private function renderSuiteCloser():String { + return '</testsuite>\n'; + } + public function toString():String { var str:String = ''; - var method:String; var failure:TestFailure; - for each(method in test.getTestMethods()) { - str += renderOpener(method); - str += renderFailure(method); - str += renderCloser(); + str += renderSuiteOpener(); + for(var name:String in methodHash) { + str += renderTestOpener(name); + str += renderTestBody(name); + str += renderTestCloser(); } + str += renderSuiteCloser(); return str; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2008-02-19 22:39:16
|
Revision: 183 http://asunit.svn.sourceforge.net/asunit/?rev=183&view=rev Author: lukebayes Date: 2008-02-19 14:39:21 -0800 (Tue, 19 Feb 2008) Log Message: ----------- Added time to XMLResultPrinter Modified Paths: -------------- trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2008-02-19 22:17:24 UTC (rev 182) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2008-02-19 22:39:21 UTC (rev 183) @@ -1,8 +1,9 @@ package asunit.textui { + import asunit.framework.Test; + import asunit.framework.TestFailure; import asunit.framework.TestResult; - import asunit.framework.TestFailure; - import asunit.framework.Test; + import flash.utils.Dictionary; public class XMLResultPrinter extends ResultPrinter { @@ -18,11 +19,18 @@ super.startTest(test); results[test.getName()] = new XMLTestResult(test); } + + override public function endTest(test:Test):void { + results[test.getName()].endTest(test); + } /* <testsuites> <testsuite name="Flash Profile Card AsUnit Test Suite" errors="1" failures="1" tests="8" time="8.002"> - <testcase classname="lib.test.cases.FailureTest" name="testError"> + <testcase classname="lib.test.cases.FailureTest" name="testError" time="0.049"> + <error type="java.lang.NullPointerException"> + <!-- stack trace --> + </error> <failure type="Error">Reference runtime test error</failure> </testcase> <testcase classname="lib.test.cases.FailureTest" name="testAssertion"> @@ -63,7 +71,8 @@ import asunit.framework.Test; import asunit.framework.TestFailure; -import flash.utils.getQualifiedClassName; +import flash.utils.getQualifiedClassName; +import flash.utils.getTimer; class XMLTestResult { @@ -71,8 +80,11 @@ private var testName:String; private var failures:Array; private var errors:Array; + private var start:Number; + private var duration:Number; public function XMLTestResult(test:Test) { + start = getTimer(); this.test = test; testName = test.getName().split("::").join("."); failures = new Array(); @@ -82,8 +94,12 @@ failures.push(failure); } + public function endTest(test:Test):void { + duration = (getTimer() - start) * .001; + } + private function renderOpener(methodName:String):String { - return "<testcase classname='" + testName + "' name='" + methodName + "'>\n"; + return "<testcase classname='" + testName + "' name='" + methodName + "' time='" + duration + "'>\n"; } private function renderFailure(methodName:String):String { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2008-02-19 22:17:18
|
Revision: 182 http://asunit.svn.sourceforge.net/asunit/?rev=182&view=rev Author: lukebayes Date: 2008-02-19 14:17:24 -0800 (Tue, 19 Feb 2008) Log Message: ----------- Fixed duration field in XMLResultPrinter Modified Paths: -------------- trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-12-04 19:41:20 UTC (rev 181) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2008-02-19 22:17:24 UTC (rev 182) @@ -49,7 +49,7 @@ trace("<XMLResultPrinter>"); trace("<?xml version='1.0' encoding='UTF-8'?>"); trace("<testsuites>"); - trace("<testsuite name='AsUnit Test Suite' errors='" + result.errorCount() + "' failures='" + result.failureCount() + "' tests='" + result.runCount() + "' time='" + elapsedTimeAsString(runTime) + " seconds'>"); + trace("<testsuite name='AsUnit Test Suite' errors='" + result.errorCount() + "' failures='" + result.failureCount() + "' tests='" + result.runCount() + "' time='" + elapsedTimeAsString(runTime) + "'>"); var xmlTestResult:XMLTestResult; for each(xmlTestResult in results) { trace(xmlTestResult.toString()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-12-04 19:41:17
|
Revision: 181 http://asunit.svn.sourceforge.net/asunit/?rev=181&view=rev Author: lukebayes Date: 2007-12-04 11:41:20 -0800 (Tue, 04 Dec 2007) Log Message: ----------- Added RemotingTestCase contributed by Jens Krause Added Paths: ----------- trunk/framework/as3/asunit/framework/RemotingTestCase.as Added: trunk/framework/as3/asunit/framework/RemotingTestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/RemotingTestCase.as (rev 0) +++ trunk/framework/as3/asunit/framework/RemotingTestCase.as 2007-12-04 19:41:20 UTC (rev 181) @@ -0,0 +1,186 @@ +package asunit.framework +{ + import flash.errors.IllegalOperationError; + import flash.events.IOErrorEvent; + import flash.events.NetStatusEvent; + import flash.events.SecurityErrorEvent; + import flash.net.NetConnection; + import flash.net.ObjectEncoding; + import flash.net.Responder; + + import asunit.framework.TestCase; + import asunit.util.ArrayIterator; + + /** + * RemotingTestCase + * @author Jens Krause [www.websector.de] + * @date 11/29/07 + * + */ + public class RemotingTestCase extends TestCase + { + + protected var connection: NetConnection; + /** + * Constructor + * @param testMethod String Name of the test case + * + */ + public function RemotingTestCase(testMethod: String = null) + { + super(testMethod); + } + + /** + * Inits a netConnection instance and add all necessary event listeners + * + */ + protected function initConnection():void + { + if (connection == null) + { + connection = new NetConnection(); + + connection.addEventListener(NetStatusEvent.NET_STATUS, connectionStatusHandler); + connection.addEventListener(IOErrorEvent.IO_ERROR, connectionIOErrorHandler); + connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR , connectionSecurityErrorHandler); + } + } + + /** + * Dispose the netConnection instance + * + */ + protected function disposeConnection():void + { + if (connection != null) + { + connection.removeEventListener(NetStatusEvent.NET_STATUS, connectionStatusHandler); + connection.removeEventListener(IOErrorEvent.IO_ERROR, connectionIOErrorHandler); + connection.removeEventListener(SecurityErrorEvent.SECURITY_ERROR , connectionSecurityErrorHandler); + + connection = null; + } + } + + /** + * Callback handler for receiving SecurityErrorEvent + * @param event SecurityErrorEvent + * + */ + protected function connectionSecurityErrorHandler(event: SecurityErrorEvent): void + { + result.addError(this, new IllegalOperationError(event.toString())); + isComplete = true; + } + + /** + * Callback handler for receiving IOErrorEvent + * @param event IOErrorEvent + * + */ + protected function connectionIOErrorHandler(event: IOErrorEvent): void + { + result.addError(this, new IllegalOperationError(event.toString())); + isComplete = true; + } + + /** + * Callback handler for receiving NetStatusEvent + * @param event NetStatusEvent + * + */ + protected function connectionStatusHandler(event: NetStatusEvent): void + { + + } + + /** + * Connects the gateway + * + * @param $gateway String Remote gateway + * @param $encoding uint Object encoding using either AMF0 or AMF3 + * + */ + protected function connect ($gateway: String = null, $encoding: uint = 0): void + { + initConnection(); + + connection.objectEncoding = ($encoding > ObjectEncoding.AMF0) ? $encoding : ObjectEncoding.AMF0; + + try { + connection.connect($gateway); + } + catch(error: Error) + { + result.addError(this, error); + } + }; + + /** + * Calls a remote service method and test it + * + * @param $method String Remote service + * @param $responder Responder Responder to handle remoting calls + * @param $arguments Array Rest paramaters (optional) + * + */ + protected function call ($method: String = null, $responder: Responder = null, ...$arguments): void + { + var hasReferenceError: Boolean = false; + + // parameters for calling connection.call(); + // To avoid using the type unsafe ...rest operator I decided to use type safe parameters within RemotingTestCase.call() + // and apply these later to connection.call(); + var params: Array = []; + + // check remote method + if ($method != null) + { + params.push($method); + } + else + { + result.addError(this, new ReferenceError("RemotingTestCase.call() has to defined a remote method.")); + hasReferenceError = true; + } + + // check responder + if ($responder != null) + { + params.push($responder); + } + else + { + result.addError(this, new ReferenceError("RemotingTestCase.call() has to defined a responder to handling its results.")); + hasReferenceError = true; + } + + // In case of a reference error invoke test running instantly + // to show the errors created above and return + if (hasReferenceError) + { + super.run(); + return; + } + + + var arrIterator: ArrayIterator = new ArrayIterator($arguments); + while (arrIterator.hasNext()) + { + params.push(arrIterator.next()); + } + + // call remote service + try { + connection.call.apply(null, params); + } + catch(error: Error) + { + result.addError(this, error); + } + + + }; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-16 18:15:33
|
Revision: 180 http://asunit.svn.sourceforge.net/asunit/?rev=180&view=rev Author: lukebayes Date: 2007-11-16 10:15:37 -0800 (Fri, 16 Nov 2007) Log Message: ----------- Change setUpIsAsynchronous from protected to private Modified Paths: -------------- trunk/framework/as3/asunit/framework/TestCase.as Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2007-11-10 00:28:49 UTC (rev 179) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-11-16 18:15:37 UTC (rev 180) @@ -91,8 +91,8 @@ protected var isComplete:Boolean; protected var context:DisplayObjectContainer; protected var methodIsAsynchronous:Boolean; - protected var setUpIsAsynchronous:Boolean; protected var timeout:Timer; + private var setUpIsAsynchronous:Boolean; private var currentMethod:String; private var runSingle:Boolean; private var methodIterator:Iterator; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-10 00:28:47
|
Revision: 179 http://asunit.svn.sourceforge.net/asunit/?rev=179&view=rev Author: lukebayes Date: 2007-11-09 16:28:49 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Working on XML Output Format Modified Paths: -------------- trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 18:18:31 UTC (rev 178) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-10 00:28:49 UTC (rev 179) @@ -95,7 +95,7 @@ } return ''; } - + private function renderCloser():String { return '</testcase>\n'; } @@ -112,3 +112,4 @@ return str; } } + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-09 18:18:29
|
Revision: 178 http://asunit.svn.sourceforge.net/asunit/?rev=178&view=rev Author: lukebayes Date: 2007-11-09 10:18:31 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Added qualified class name to failure type report Modified Paths: -------------- trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 18:09:26 UTC (rev 177) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 18:18:31 UTC (rev 178) @@ -62,16 +62,19 @@ } import asunit.framework.Test; -import asunit.framework.TestFailure; +import asunit.framework.TestFailure; +import flash.utils.getQualifiedClassName; class XMLTestResult { private var test:Test; + private var testName:String; private var failures:Array; private var errors:Array; public function XMLTestResult(test:Test) { this.test = test; + testName = test.getName().split("::").join("."); failures = new Array(); } @@ -79,24 +82,15 @@ failures.push(failure); } - private function renderFailures():String { - var result:String = ""; - var failure:TestFailure; - for each(failure in failures) { - result += "<failure type='" + failure.thrownException().name + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; - } - return result; - } - private function renderOpener(methodName:String):String { - return "<testcase classname='" + test.getName() + "' name='" + methodName + "'>\n"; + return "<testcase classname='" + testName + "' name='" + methodName + "'>\n"; } private function renderFailure(methodName:String):String { var failure:TestFailure; for each(failure in failures) { if(failure.failedMethod() == methodName) { - return "<failure type='" + failure.thrownException().name + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; + return "<failure type='" + getQualifiedClassName(failure.thrownException()).split("::").join(".") + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; } } return ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-09 18:09:21
|
Revision: 177 http://asunit.svn.sourceforge.net/asunit/?rev=177&view=rev Author: lukebayes Date: 2007-11-09 10:09:26 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Improving Continuous Integration Printer Modified Paths: -------------- trunk/framework/as3/asunit/framework/TestFailure.as trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/framework/TestFailure.as =================================================================== --- trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 17:55:54 UTC (rev 176) +++ trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 18:09:26 UTC (rev 177) @@ -21,8 +21,13 @@ } public function failedFeature():String { - return failedTest().getName() + '.' + fFailedTestMethod + "()"; + return failedTest().getName() + '.' + fFailedTestMethod; } + + public function failedMethod():String { + return fFailedTestMethod; + } + /** * Gets the failed test case. */ Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 17:55:54 UTC (rev 176) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 18:09:26 UTC (rev 177) @@ -71,7 +71,7 @@ private var errors:Array; public function XMLTestResult(test:Test) { - this.test = test; + this.test = test; failures = new Array(); } @@ -88,11 +88,33 @@ return result; } + private function renderOpener(methodName:String):String { + return "<testcase classname='" + test.getName() + "' name='" + methodName + "'>\n"; + } + + private function renderFailure(methodName:String):String { + var failure:TestFailure; + for each(failure in failures) { + if(failure.failedMethod() == methodName) { + return "<failure type='" + failure.thrownException().name + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; + } + } + return ''; + } + + private function renderCloser():String { + return '</testcase>\n'; + } + public function toString():String { - var str:String = ""; - str += "<testcase classname='" + test.getName() + "' name='[method name here]'>\n"; - str += renderFailures(); - str += "</testcase>"; + var str:String = ''; + var method:String; + var failure:TestFailure; + for each(method in test.getTestMethods()) { + str += renderOpener(method); + str += renderFailure(method); + str += renderCloser(); + } return str; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-09 17:55:54
|
Revision: 176 http://asunit.svn.sourceforge.net/asunit/?rev=176&view=rev Author: lukebayes Date: 2007-11-09 09:55:54 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Working on Continuous Integration support Modified Paths: -------------- trunk/framework/as3/asunit/framework/Test.as trunk/framework/as3/asunit/framework/TestCase.as trunk/framework/as3/asunit/framework/TestFailure.as trunk/framework/as3/asunit/textui/ResultPrinter.as trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/framework/Test.as =================================================================== --- trunk/framework/as3/asunit/framework/Test.as 2007-11-09 08:43:51 UTC (rev 175) +++ trunk/framework/as3/asunit/framework/Test.as 2007-11-09 17:55:54 UTC (rev 176) @@ -5,6 +5,7 @@ public interface Test extends IEventDispatcher { function countTestCases():int; function getName():String; + function getTestMethods():Array; function toString():String; function setResult(result:TestResult):void; function run():void; Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2007-11-09 08:43:51 UTC (rev 175) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-11-09 17:55:54 UTC (rev 176) @@ -154,6 +154,10 @@ testMethods.push(name); } } + + public function getTestMethods():Array { + return testMethods; + } /** * Counts the number of test cases executed by run(TestResult result). Modified: trunk/framework/as3/asunit/framework/TestFailure.as =================================================================== --- trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 08:43:51 UTC (rev 175) +++ trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 17:55:54 UTC (rev 176) @@ -7,32 +7,29 @@ * @see TestResult */ public class TestFailure { - protected var fFailedTest:String; - protected var fFailedTestName:String; + protected var fFailedTest:Test; + protected var fFailedTestMethod:String; protected var fThrownException:Error; /** * Constructs a TestFailure with the given test and exception. */ public function TestFailure(failedTest:Test, thrownException:Error) { - fFailedTest = failedTest.toString(); - fFailedTestName = failedTest.getName(); + fFailedTest = failedTest; + fFailedTestMethod = failedTest.getCurrentMethod(); fThrownException = thrownException; } + + public function failedFeature():String { + return failedTest().getName() + '.' + fFailedTestMethod + "()"; + } /** - * Gets the failed test class with method name. + * Gets the failed test case. */ - public function failedTest():String { + public function failedTest():Test { return fFailedTest; } - /** - * Gets the failed test class name. - */ - public function failedTestName():String { - return fFailedTestName; - } - /** * Gets the thrown exception. */ public function thrownException():Error { Modified: trunk/framework/as3/asunit/textui/ResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/ResultPrinter.as 2007-11-09 08:43:51 UTC (rev 175) +++ trunk/framework/as3/asunit/textui/ResultPrinter.as 2007-11-09 17:55:54 UTC (rev 176) @@ -133,7 +133,7 @@ // I feel like making this a println, then adding a line giving the throwable a chance to print something // before we get to the stack trace. var startIndex:uint = textArea.text.length; - println(count + ") " + booBoo.failedTest()); + println(count + ") " + booBoo.failedFeature()); var endIndex:uint = textArea.text.length; var format:TextFormat = textArea.getTextFormat(); Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 08:43:51 UTC (rev 175) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 17:55:54 UTC (rev 176) @@ -37,13 +37,13 @@ if(result.errorCount()) { var error:TestFailure; for each(error in result.errors()) { - results[error.failedTestName()].addFailure(error); + results[error.failedTest().getName()].addFailure(error); } } if(result.failureCount()) { var failure:TestFailure; for each(failure in result.failures()) { - results[failure.failedTestName()].addFailure(failure); + results[failure.failedTest().getName()].addFailure(failure); } } trace("<XMLResultPrinter>"); @@ -90,7 +90,7 @@ public function toString():String { var str:String = ""; - str += "<testcase classname='" + test.getName() + "'>\n"; + str += "<testcase classname='" + test.getName() + "' name='[method name here]'>\n"; str += renderFailures(); str += "</testcase>"; return str; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-09 08:43:46
|
Revision: 175 http://asunit.svn.sourceforge.net/asunit/?rev=175&view=rev Author: lukebayes Date: 2007-11-09 00:43:51 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Added xml trace output for Cruise control test results Modified Paths: -------------- trunk/framework/as3/asunit/framework/Test.as trunk/framework/as3/asunit/framework/TestCase.as trunk/framework/as3/asunit/framework/TestFailure.as trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/framework/Test.as =================================================================== --- trunk/framework/as3/asunit/framework/Test.as 2007-11-09 00:32:12 UTC (rev 174) +++ trunk/framework/as3/asunit/framework/Test.as 2007-11-09 08:43:51 UTC (rev 175) @@ -4,6 +4,7 @@ public interface Test extends IEventDispatcher { function countTestCases():int; + function getName():String; function toString():String; function setResult(result:TestResult):void; function run():void; Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2007-11-09 00:32:12 UTC (rev 174) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-11-09 08:43:51 UTC (rev 175) @@ -277,7 +277,12 @@ * Returns a string representation of the test case */ override public function toString():String { - return getName() + "." + getCurrentMethod() + "()"; + if(getCurrentMethod()) { + return getName() + "." + getCurrentMethod() + "()"; + } + else { + return getName(); + } } /** * Gets the name of a TestCase Modified: trunk/framework/as3/asunit/framework/TestFailure.as =================================================================== --- trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 00:32:12 UTC (rev 174) +++ trunk/framework/as3/asunit/framework/TestFailure.as 2007-11-09 08:43:51 UTC (rev 175) @@ -8,6 +8,7 @@ */ public class TestFailure { protected var fFailedTest:String; + protected var fFailedTestName:String; protected var fThrownException:Error; /** @@ -15,15 +16,23 @@ */ public function TestFailure(failedTest:Test, thrownException:Error) { fFailedTest = failedTest.toString(); + fFailedTestName = failedTest.getName(); fThrownException = thrownException; } /** - * Gets the failed test. + * Gets the failed test class with method name. */ public function failedTest():String { return fFailedTest; } + /** + * Gets the failed test class name. + */ + public function failedTestName():String { + return fFailedTestName; + } + /** * Gets the thrown exception. */ public function thrownException():Error { Modified: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 00:32:12 UTC (rev 174) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 08:43:51 UTC (rev 175) @@ -2,29 +2,97 @@ import asunit.framework.TestResult; import asunit.framework.TestFailure; + import asunit.framework.Test; + import flash.utils.Dictionary; - public class XMLResultPrinter extends ResultPrinter { + public class XMLResultPrinter extends ResultPrinter { + + protected var results:Dictionary; + protected var currentResult:XMLTestResult; + + public function XMLResultPrinter() { + results = new Dictionary(); + } + + override public function startTest(test:Test):void { + super.startTest(test); + results[test.getName()] = new XMLTestResult(test); + } +/* +<testsuites> + <testsuite name="Flash Profile Card AsUnit Test Suite" errors="1" failures="1" tests="8" time="8.002"> + <testcase classname="lib.test.cases.FailureTest" name="testError"> + <failure type="Error">Reference runtime test error</failure> + </testcase> + <testcase classname="lib.test.cases.FailureTest" name="testAssertion"> + <failure type="AssertionFailedError">Reference assertion test failure</failure> + </testcase> + </testsuite> +</testsuites> +*/ override public function printResult(result:TestResult, runTime:Number):void { super.printResult(result, runTime); - trace("<XMLResultPrinter>"); - trace("PRINT RESULT CALLED with: "); - trace("runCount: " + result.runCount()); - trace("errorCount: " + result.errorCount()); - trace("failureCount: " + result.failureCount()); + if(result.errorCount()) { var error:TestFailure; for each(error in result.errors()) { - trace("error: " + error.toString()); + results[error.failedTestName()].addFailure(error); } } if(result.failureCount()) { var failure:TestFailure; for each(failure in result.failures()) { - trace("failure: " + failure.thrownException().getStackTrace()); + results[failure.failedTestName()].addFailure(failure); } } + trace("<XMLResultPrinter>"); + trace("<?xml version='1.0' encoding='UTF-8'?>"); + trace("<testsuites>"); + trace("<testsuite name='AsUnit Test Suite' errors='" + result.errorCount() + "' failures='" + result.failureCount() + "' tests='" + result.runCount() + "' time='" + elapsedTimeAsString(runTime) + " seconds'>"); + var xmlTestResult:XMLTestResult; + for each(xmlTestResult in results) { + trace(xmlTestResult.toString()); + } + trace("</testsuite>"); + trace("</testsuites>"); trace("</XMLResultPrinter>"); - } + } } -} +} + +import asunit.framework.Test; +import asunit.framework.TestFailure; + +class XMLTestResult { + + private var test:Test; + private var failures:Array; + private var errors:Array; + + public function XMLTestResult(test:Test) { + this.test = test; + failures = new Array(); + } + + public function addFailure(failure:TestFailure):void { + failures.push(failure); + } + + private function renderFailures():String { + var result:String = ""; + var failure:TestFailure; + for each(failure in failures) { + result += "<failure type='" + failure.thrownException().name + "'>" + failure.thrownException().getStackTrace() + "\n</failure>\n"; + } + return result; + } + + public function toString():String { + var str:String = ""; + str += "<testcase classname='" + test.getName() + "'>\n"; + str += renderFailures(); + str += "</testcase>"; + return str; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-11-09 00:32:12
|
Revision: 174 http://asunit.svn.sourceforge.net/asunit/?rev=174&view=rev Author: lukebayes Date: 2007-11-08 16:32:12 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Working on support for Continuous Integration Tools Modified Paths: -------------- trunk/framework/as3/asunit/textui/TestRunner.as Added Paths: ----------- trunk/framework/as3/asunit/textui/XMLResultPrinter.as Modified: trunk/framework/as3/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as3/asunit/textui/TestRunner.as 2007-10-25 18:48:07 UTC (rev 173) +++ trunk/framework/as3/asunit/textui/TestRunner.as 2007-11-09 00:32:12 UTC (rev 174) @@ -13,7 +13,8 @@ import flash.utils.getTimer; import flash.utils.setInterval; import flash.utils.Timer; - import flash.events.TimerEvent; + import flash.events.TimerEvent; + import flash.display.DisplayObject; /** * A command line based tool to run tests. @@ -109,8 +110,12 @@ } public function setPrinter(printer:ResultPrinter):void { - if(fPrinter == null) { - fPrinter = printer; + if(fPrinter is DisplayObject && getChildIndex(fPrinter)) { + removeChild(fPrinter); + } + + fPrinter = printer; + if(fPrinter is DisplayObject) { addChild(fPrinter); } } Added: trunk/framework/as3/asunit/textui/XMLResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/XMLResultPrinter.as (rev 0) +++ trunk/framework/as3/asunit/textui/XMLResultPrinter.as 2007-11-09 00:32:12 UTC (rev 174) @@ -0,0 +1,30 @@ +package asunit.textui { + + import asunit.framework.TestResult; + import asunit.framework.TestFailure; + + public class XMLResultPrinter extends ResultPrinter { + + override public function printResult(result:TestResult, runTime:Number):void { + super.printResult(result, runTime); + trace("<XMLResultPrinter>"); + trace("PRINT RESULT CALLED with: "); + trace("runCount: " + result.runCount()); + trace("errorCount: " + result.errorCount()); + trace("failureCount: " + result.failureCount()); + if(result.errorCount()) { + var error:TestFailure; + for each(error in result.errors()) { + trace("error: " + error.toString()); + } + } + if(result.failureCount()) { + var failure:TestFailure; + for each(failure in result.failures()) { + trace("failure: " + failure.thrownException().getStackTrace()); + } + } + trace("</XMLResultPrinter>"); + } + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-10-25 18:48:06
|
Revision: 173 http://asunit.svn.sourceforge.net/asunit/?rev=173&view=rev Author: lukebayes Date: 2007-10-25 11:48:07 -0700 (Thu, 25 Oct 2007) Log Message: ----------- Added support for addAsync in the setUp method Modified Paths: -------------- trunk/framework/as3/asunit/framework/TestCase.as Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2007-10-11 18:46:45 UTC (rev 172) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-10-25 18:48:07 UTC (rev 173) @@ -80,21 +80,24 @@ * @see TestSuite */ public class TestCase extends Assert implements Test { - /** - * the name of the test case - */ - protected static const DEFAULT_TIMEOUT:int = 1000; + protected static const PRE_SET_UP:int = 0; + protected static const SET_UP:int = 1; + protected static const RUN_METHOD:int = 2; + protected static const TEAR_DOWN:int = 3; + protected static const DEFAULT_TIMEOUT:int = 1000; protected var fName:String; protected var result:TestResult; protected var testMethods:Array; protected var isComplete:Boolean; protected var context:DisplayObjectContainer; protected var methodIsAsynchronous:Boolean; + protected var setUpIsAsynchronous:Boolean; protected var timeout:Timer; private var currentMethod:String; private var runSingle:Boolean; private var methodIterator:Iterator; private var layoutManager:Object; + private var currentState:int; /** * Constructs a test case with the given name. @@ -203,6 +206,7 @@ var itr:Iterator = getMethodIterator(); if(itr.hasNext()) { name = String(itr.next()); + currentState = PRE_SET_UP; runMethod(name); } else { @@ -228,10 +232,19 @@ private function runMethod(methodName:String):void { try { - setUp(); + methodIsAsynchronous = false; + if(currentState == PRE_SET_UP) { + currentState = SET_UP; + setUp(); // setUp may be async and change the state of methodIsAsynchronous + } currentMethod = methodName; - methodIsAsynchronous = false; - this[methodName](); + if(!methodIsAsynchronous) { + currentState = RUN_METHOD; + this[methodName](); + } + else { + setUpIsAsynchronous = true; + } } catch(assertionFailedError:AssertionFailedError) { getResult().addFailure(this, assertionFailedError); @@ -312,7 +325,7 @@ context.getResult().addError(context, ioe); } finally { - context.runTearDown(); + context.asyncMethodComplete(); } } } @@ -321,11 +334,21 @@ var context:TestCase = this; return function(event:Event):void { context.getResult().addError(context, new IllegalOperationError("TestCase.timeout (" + duration + "ms) exceeded on an asynchronous test method.")); - context.runTearDown(); + context.asyncMethodComplete(); } } + + protected function asyncMethodComplete():void { + if(currentState == SET_UP) { + runMethod(currentMethod); + } + else if(currentState == RUN_METHOD) { + runTearDown(); + } + } protected function runTearDown():void { + currentState = TEAR_DOWN; if(isComplete) { return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-10-11 18:46:44
|
Revision: 172 http://asunit.svn.sourceforge.net/asunit/?rev=172&view=rev Author: lukebayes Date: 2007-10-11 11:46:45 -0700 (Thu, 11 Oct 2007) Log Message: ----------- Added Jonathan Marston to links Modified Paths: -------------- trunk/comm/www/html/index.html Modified: trunk/comm/www/html/index.html =================================================================== --- trunk/comm/www/html/index.html 2007-10-11 18:26:24 UTC (rev 171) +++ trunk/comm/www/html/index.html 2007-10-11 18:46:45 UTC (rev 172) @@ -249,6 +249,8 @@ <p>Check out the following resources to learn more about AsUnit in particular and <a href="http://en.wikipedia.org/wiki/Unit_test">unit testing</a> in general.</p> <ul> + <li><a href="http://marstonstudio.com/index.php/2007/07/28/asunit-testing-with-flash-cs3-and-actionscript-3/">AsUnit 3 with CS 3 Tutorial</a> Thanks to Jonathan Marston!</li> + <li><a href="docs/asunit3">AsUnit 3 (ActionScript 3) AsDoc output</a> (Thanks to Michael Baird for packaging these)</li> <li><a href="http://www.asserttrue.com/articles/tag/asunit">AssertTrue</a> is the official destination for all news and articles related to AsUnit.</li> <li><a href="http://svn.sourceforge.net/viewcvs.cgi/*checkout*/asunit/trunk/comm/marketing/trailer/fla/AsUnit-TechnicalMerit-Trailer.swf">The trailer that was played at the Flashforward film festival</a> Thanks to all of you - AsUnit was a finalist in the Technical Merit category!</li> <li><a href="http://www.v-i-a.net/blog/mt-search.cgi?IncludeBlogs=1&search=asunit"><strong>Unit Testing en ActionScript 1-4</strong> <i>(French)</i></a><i> by <a href="http://www.v-i-a.net/">Eric Priou</a></i></li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-10-11 18:26:35
|
Revision: 170 http://asunit.svn.sourceforge.net/asunit/?rev=170&view=rev Author: lukebayes Date: 2007-10-11 11:25:50 -0700 (Thu, 11 Oct 2007) Log Message: ----------- Updated externals definitions Property Changed: ---------------- trunk/flashui/ Property changes on: trunk/flashui ___________________________________________________________________ Name: svn:externals - as2 https://svn.sourceforge.net/svnroot/asunit/trunk/framework/as2 as25 https://svn.sourceforge.net/svnroot/asunit/trunk/framework/as25 + as2 https://asunit.svn.sourceforge.net/svnroot/asunit/trunk/framework/as2 as25 https://asunit.svn.sourceforge.net/svnroot/asunit/trunk/framework/as25 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-10-11 18:26:20
|
Revision: 171 http://asunit.svn.sourceforge.net/asunit/?rev=171&view=rev Author: lukebayes Date: 2007-10-11 11:26:24 -0700 (Thu, 11 Oct 2007) Log Message: ----------- Updated changelog for release Modified Paths: -------------- trunk/framework/CHANGE-LOG.txt Modified: trunk/framework/CHANGE-LOG.txt =================================================================== --- trunk/framework/CHANGE-LOG.txt 2007-10-11 18:25:50 UTC (rev 170) +++ trunk/framework/CHANGE-LOG.txt 2007-10-11 18:26:24 UTC (rev 171) @@ -1,397 +1,230 @@ +------------------------------------------------------------------------ +r162 | alimills | 2007-03-26 16:09:08 -0700 (Mon, 26 Mar 2007) | 1 line ----------------------------- -RELEASE ----------------------------- +removing modified mx LayoutManager +------------------------------------------------------------------------ +r161 | alimills | 2007-02-27 13:57:22 -0800 (Tue, 27 Feb 2007) | 1 line +adding check for AssertionPassedError ------------------------------------------------------------------------ +r160 | lukebayes | 2007-02-22 16:10:04 -0800 (Thu, 22 Feb 2007) | 1 line + +Updated assertEquals method so that it does not compare by reference, use assertSame for that functionality +------------------------------------------------------------------------ +r159 | lukebayes | 2007-02-15 16:09:02 -0800 (Thu, 15 Feb 2007) | 1 line + +added more useful output for assertEquals failures +------------------------------------------------------------------------ +r158 | lukebayes | 2007-02-09 22:46:13 -0800 (Fri, 09 Feb 2007) | 1 line + +removed unused build and manifest files +------------------------------------------------------------------------ +r157 | lukebayes | 2007-01-29 15:09:39 -0800 (Mon, 29 Jan 2007) | 1 line + +added more informative exception for removeChild when tearDown attempts to removeChild with a null child reference +------------------------------------------------------------------------ +r156 | lukebayes | 2007-01-26 20:02:59 -0800 (Fri, 26 Jan 2007) | 1 line + +Removed bad layoutmanager +------------------------------------------------------------------------ +r155 | lukebayes | 2007-01-26 19:18:25 -0800 (Fri, 26 Jan 2007) | 1 line + +Added LayoutManager support for Flex Builder 2.0.1 +------------------------------------------------------------------------ +r154 | lukebayes | 2007-01-23 14:51:07 -0800 (Tue, 23 Jan 2007) | 1 line + +Moved the exclude declaration to work better +------------------------------------------------------------------------ +r153 | lukebayes | 2007-01-23 14:01:09 -0800 (Tue, 23 Jan 2007) | 1 line + +Added exclude class directives so they dont annoy flex development +------------------------------------------------------------------------ +r146 | lukebayes | 2007-01-08 17:06:36 -0800 (Mon, 08 Jan 2007) | 1 line + +Added License and Changelog to release +------------------------------------------------------------------------ r140 | lukebayes | 2006-11-24 00:32:08 -0800 (Fri, 24 Nov 2006) | 1 line -Changed paths: - M /trunk/framework/as3 - M /trunk/framework/as3/build.sh Cleaning up build process ------------------------------------------------------------------------ r137 | alimills | 2006-11-11 08:57:45 -0800 (Sat, 11 Nov 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/Assert.as adding assertEqualsFloat() which was donated by Penner ------------------------------------------------------------------------ r136 | lukebayes | 2006-11-06 17:23:44 -0800 (Mon, 06 Nov 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as - M /trunk/framework/as3/asunit/errors/AssertionFailedError.as - M /trunk/framework/as3/asunit/errors/ClassNotFoundError.as - M /trunk/framework/as3/asunit/errors/InstanceNotFoundError.as - D /trunk/framework/as3/asunit/errors/InvocationTargetError.as - M /trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as - M /trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as - M /trunk/framework/as3/asunit/framework/TestCaseExample.as - M /trunk/framework/as3/asunit/runner/BaseTestRunner.as - D /trunk/framework/as3/asunit/runner/TestRunListener.as - M /trunk/framework/as3/asunit/textui/TestRunner.as - M /trunk/framework/as3/asunit/util/Properties.as - A /trunk/framework/as3/build.sh - A /trunk/framework/as3/manifest.xml Cleaned up classes for swc creation, removed unused support and error classes ------------------------------------------------------------------------ r135 | lukebayes | 2006-11-06 16:17:29 -0800 (Mon, 06 Nov 2006) | 1 line -Changed paths: - D /trunk/framework/as3/mx/managers/LayoutManagerTest.as - D /trunk/framework/as3/mx/managers/MockContainer.as Removed LayoutManagerTest and related class, as they can't be executed / tested without framework dependencies ------------------------------------------------------------------------ r134 | lukebayes | 2006-11-06 16:15:34 -0800 (Mon, 06 Nov 2006) | 1 line -Changed paths: - D /trunk/framework/as3/mx/managers/ILayoutManagerClient.as Removed interface that didn't actually need to be imported ------------------------------------------------------------------------ r133 | lukebayes | 2006-11-06 16:11:50 -0800 (Mon, 06 Nov 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as Cleaned up LayoutManager code to avoid framework dependencies ------------------------------------------------------------------------ r132 | lukebayes | 2006-11-06 16:01:21 -0800 (Mon, 06 Nov 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/TestCase.as - A /trunk/framework/as3/mx - A /trunk/framework/as3/mx/managers - A /trunk/framework/as3/mx/managers/ILayoutManagerClient.as - A /trunk/framework/as3/mx/managers/LayoutManager.as - A /trunk/framework/as3/mx/managers/LayoutManagerTest.as - A /trunk/framework/as3/mx/managers/MockContainer.as Added custom Implementation of LayoutManager that will prevent Validation of Flex components after tearDown has been called, this greatly speeds up the execution of larger test suites ------------------------------------------------------------------------ r131 | lukebayes | 2006-10-23 12:12:48 -0700 (Mon, 23 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as - ----------------------------- -RELEASE ----------------------------- - - Added bug fix to prevent multiple dispacthes to an async method from completing test execution more than once ------------------------------------------------------------------------ r128 | lukebayes | 2006-10-17 14:41:30 -0700 (Tue, 17 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as Working on async methods in TestCase ------------------------------------------------------------------------ r127 | lukebayes | 2006-10-11 23:21:07 -0700 (Wed, 11 Oct 2006) | 1 line -Changed paths: - D /trunk/framework/as3/AsUnitApplication.as - A /trunk/framework/as3/asunit/textui/FlexRunner.as Moved base flex application to textui package ------------------------------------------------------------------------ r126 | lukebayes | 2006-10-11 23:13:25 -0700 (Wed, 11 Oct 2006) | 1 line -Changed paths: - A /trunk/framework/as3/AsUnitApplication.as - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestSuite.as - M /trunk/framework-test/as3/asunit/framework/AllTests.as - D /trunk/framework-test/as3/asunit/framework/AsyncMethod2Test.as - M /trunk/framework-test/as3/asunit/framework/AsyncMethodTest.as - M /trunk/framework-test/as3/asunit/framework/TestCaseTest.as Restructured base TestCase so that it now runs completely asynchronously, fully support MXML projects, and addAsync works every time ------------------------------------------------------------------------ r125 | lukebayes | 2006-10-10 23:51:42 -0700 (Tue, 10 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestSuite.as - M /trunk/framework/as3/asunit/textui/TestRunner.as - M /trunk/framework-test/as3/asunit/framework/AllTests.as Changed setTimeout to Timer object because setTimeout does not work as promised at all ------------------------------------------------------------------------ r124 | lukebayes | 2006-10-10 22:31:17 -0700 (Tue, 10 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as Fixed Indenting on FlexTestRunner ------------------------------------------------------------------------ r122 | lukebayes | 2006-10-10 22:09:04 -0700 (Tue, 10 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestSuite.as Made TestSuites pause execution for asynchronus TestCases ------------------------------------------------------------------------ r121 | lukebayes | 2006-10-05 13:17:40 -0700 (Thu, 05 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCaseExample.as updated example ------------------------------------------------------------------------ r120 | lukebayes | 2006-10-05 12:07:54 -0700 (Thu, 05 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as hooked up DEFAULT_TIMEOUT constant to async method timeout duration ------------------------------------------------------------------------ r119 | lukebayes | 2006-10-05 12:03:10 -0700 (Thu, 05 Oct 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as Got async test case working much better within the context of a Flex Framework application ------------------------------------------------------------------------ r118 | lukebayes | 2006-09-21 11:19:08 -0700 (Thu, 21 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/TestSuite.as - M /trunk/framework/as25/asunit/runner/BaseTestRunner.as - A /trunk/framework/as25/asunit/util - A /trunk/framework/as25/asunit/util/ArrayIterator.as - A /trunk/framework/as25/asunit/util/ArrayIteratorTest.as - A /trunk/framework/as25/asunit/util/Iterator.as added asynchronous execution of test suites to avoid script timeouts on large projects ------------------------------------------------------------------------ r117 | lukebayes | 2006-09-20 18:35:18 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework-test/as3/asunit/framework/TestCaseTest.as Cleaned up traces and whatnot from async feature ------------------------------------------------------------------------ r115 | lukebayes | 2006-09-20 18:32:40 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/Assert.as - M /trunk/framework/as3/asunit/framework/Test.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestSuite.as - M /trunk/framework/as3/asunit/textui/TestRunner.as Async test cases and suites seem to be working properly ------------------------------------------------------------------------ r114 | lukebayes | 2006-09-20 14:23:53 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCaseExample.as updating comments in TestCase ------------------------------------------------------------------------ r113 | lukebayes | 2006-09-20 14:22:59 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as updated runner to execute all tests ------------------------------------------------------------------------ r112 | lukebayes | 2006-09-20 14:21:37 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - D /trunk/framework/as3/asunit/AllTests.as - M /trunk/framework/as3/asunit/framework/TestCase.as - A /trunk/framework/as3/asunit/framework/TestCaseExample.as got async method working better ------------------------------------------------------------------------ r111 | lukebayes | 2006-09-20 11:50:50 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework added ignore props ------------------------------------------------------------------------ r104 | lukebayes | 2006-09-20 11:20:59 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - D /trunk/framework/as3/AllTests.as - D /trunk/framework/as3/asunit/framework/AllTests.as - D /trunk/framework/as3/asunit/framework/AssertTest.as - D /trunk/framework/as3/asunit/framework/MockData.xml - D /trunk/framework/as3/asunit/framework/TestCaseMock.as - D /trunk/framework/as3/asunit/framework/TestCaseTest.as - D /trunk/framework/as3/asunit/framework/TestFailureTest.as - D /trunk/framework/as3/asunit/framework/VisualTestCaseTest.as - D /trunk/framework/as3/asunit/runner/BaseTestRunnerMock.as - D /trunk/framework/as3/asunit/textui/AllTests.as - D /trunk/framework/as3/asunit/textui/TestRunnerTest.as - D /trunk/framework/as3/asunit/textui/TestRunnerTestCaseMock.as - D /trunk/framework/as3/asunit/util/AllTests.as - D /trunk/framework/as3/asunit/util/ArrayIteratorTest.as moving test classes to framework-test ------------------------------------------------------------------------ r103 | lukebayes | 2006-09-20 11:16:23 -0700 (Wed, 20 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3 updated ignore props ------------------------------------------------------------------------ r102 | lukebayes | 2006-09-19 15:23:56 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - A /trunk/framework/as3/asunit/textui/AllTests.as adding test suites ------------------------------------------------------------------------ r101 | lukebayes | 2006-09-19 15:22:59 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/textui/TestRunnerTest.as working toward async test methods, seems like it might be working. ------------------------------------------------------------------------ r100 | lukebayes | 2006-09-19 15:11:36 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/Assert.as - M /trunk/framework/as3/asunit/framework/AssertTest.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/textui/TestRunnerTest.as working toward async test methods, almost there ------------------------------------------------------------------------ r99 | lukebayes | 2006-09-19 14:40:51 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/textui/TestRunnerTest.as got a basic async test method working, still not ideal though ------------------------------------------------------------------------ r98 | lukebayes | 2006-09-19 13:35:05 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/Assert.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestResult.as - M /trunk/framework/as3/asunit/textui/TestRunnerTest.as - M /trunk/framework/as3/asunit/textui/TestRunnerTestCaseMock.as Working on async test methods ------------------------------------------------------------------------ r97 | lukebayes | 2006-09-19 09:57:15 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - A /trunk/framework/as3/asunit/textui/TestRunnerTest.as - A /trunk/framework/as3/asunit/textui/TestRunnerTestCaseMock.as added TestRunner test and mock ------------------------------------------------------------------------ r96 | lukebayes | 2006-09-19 09:56:18 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/AllTests.as - M /trunk/framework/as3/asunit/framework/AssertTest.as - M /trunk/framework/as3/asunit/framework/TestCaseMock.as - M /trunk/framework/as3/asunit/framework/TestCaseTest.as - M /trunk/framework/as3/asunit/framework/TestFailureTest.as - M /trunk/framework/as3/asunit/framework/VisualTestCaseTest.as - A /trunk/framework/as3/asunit/util/AllTests.as - A /trunk/framework/as3/asunit/util/ArrayIterator.as - A /trunk/framework/as3/asunit/util/ArrayIteratorTest.as - A /trunk/framework/as3/asunit/util/Iterator.as added ArrayIterator to framework ------------------------------------------------------------------------ r93 | lukebayes | 2006-09-19 09:24:06 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/AllTests.as - M /trunk/framework/as3/asunit/framework/AssertTest.as - M /trunk/framework/as3/asunit/framework/TestCaseTest.as - M /trunk/framework/as3/asunit/framework/TestFailureTest.as - D /trunk/framework/as3/asunit/framework/TestSuiteTest.as fixing test case constructors ------------------------------------------------------------------------ r92 | lukebayes | 2006-09-19 09:19:15 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - A /trunk/framework/as3/AllTests.as - A /trunk/framework/as3/asunit/AllTests.as - A /trunk/framework/as3/asunit/framework/AllTests.as added test suites to repository ------------------------------------------------------------------------ r91 | lukebayes | 2006-09-19 09:13:14 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/AsUnitTestRunner.as - M /trunk/framework/as3/asunit/framework/AssertTest.as - M /trunk/framework/as3/asunit/framework/TestCaseTest.as got test fixtures up to date ------------------------------------------------------------------------ r90 | alimills | 2006-09-19 09:11:28 -0700 (Tue, 19 Sep 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/TestRunner.as fixing bug that broke AsUnit in ActionScript projects ------------------------------------------------------------------------ r69 | lukebayes | 2006-08-25 12:41:34 -0700 (Fri, 25 Aug 2006) | 2 lines -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as got rid of trace statements ------------------------------------------------------------------------ r68 | lukebayes | 2006-08-22 20:11:38 -0700 (Tue, 22 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/framework/as3/asunit/textui/TestRunner.as got the start interface to work properly in the FlexTestRunner (support showTrace:Boolean) ------------------------------------------------------------------------ r67 | lukebayes | 2006-08-18 11:18:11 -0700 (Fri, 18 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as added removeChild support to the FlexTestRunner ------------------------------------------------------------------------ r66 | lukebayes | 2006-08-18 11:08:49 -0700 (Fri, 18 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/framework/as3/asunit/textui/TestRunner.as working on flex2 support ------------------------------------------------------------------------ r65 | alimills | 2006-08-15 14:28:13 -0700 (Tue, 15 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/framework/as3/asunit/textui/TestRunner.as Flex project support added!! ------------------------------------------------------------------------ r64 | alimills | 2006-08-15 14:19:57 -0700 (Tue, 15 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/TestListener.as - M /trunk/framework/as3/asunit/textui/FlexTestRunner.as - M /trunk/framework/as3/asunit/textui/TestRunner.as integrated with flex!? ------------------------------------------------------------------------ r63 | alimills | 2006-08-15 12:14:06 -0700 (Tue, 15 Aug 2006) | 1 line -Changed paths: - A /trunk/framework/as3/asunit/textui/FlexTestRunner.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/framework/as3/asunit/textui/TestRunner.as working towards a working FlexTestRunner ------------------------------------------------------------------------ r62 | alimills | 2006-08-08 16:20:09 -0700 (Tue, 08 Aug 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/errors/AssertionFailedError.as - M /trunk/framework/as3/asunit/errors/InstanceNotFoundError.as - M /trunk/framework/as3/asunit/framework/AsynchronousTestCase.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/xului/bin/AsUnit.xpi Flex Builder 2.0 release fixes ------------------------------------------------------------------------ r61 | alimills | 2006-06-25 10:32:09 -0700 (Sun, 25 Jun 2006) | 4 lines -Changed paths: - M /trunk/framework/as3/asunit/framework/MockData.xml The mockdata.xml file in as3\asunit\framework\ uses "&", which should be escaped with "&". Also, "Pragmattic" should have one "t". =) @@ -399,139 +232,70 @@ Robert ------------------------------------------------------------------------ r57 | alimills | 2006-06-20 15:27:11 -0700 (Tue, 20 Jun 2006) | 1 line -Changed paths: - M /trunk/framework/as3/asunit/framework/Assert.as - M /trunk/framework/as3/asunit/framework/TestCase.as - M /trunk/framework/as3/asunit/framework/TestFailure.as - M /trunk/framework/as3/asunit/framework/TestListener.as - M /trunk/framework/as3/asunit/framework/TestResult.as - M /trunk/framework/as3/asunit/framework/TestSuite.as - M /trunk/framework/as3/asunit/runner/BaseTestRunner.as - M /trunk/framework/as3/asunit/textui/ResultPrinter.as - M /trunk/framework/as3/asunit/textui/TestRunner.as - A /trunk/installers/win/AsUnit-20060619.msi - M /trunk/xului/bin/AsUnit.xpi - M /trunk/xului/src/chrome/AsUnit.jar - M /trunk/xului/src/chrome/asunit/content/asunit/SetupWizard.xul - M /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3TestCaseConfig.js - M /trunk/xului/src/chrome/en-US.jar updating for Flex Builder 2.0 beta 3 ------------------------------------------------------------------------ r54 | lukebayes | 2006-04-08 16:17:30 -0700 (Sat, 08 Apr 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/AssertTest.as Removed bad trace statement ------------------------------------------------------------------------ r53 | lukebayes | 2006-04-08 14:28:50 -0700 (Sat, 08 Apr 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/TestCase.as - M /trunk/framework/as25/asunit/framework/TestCaseXml.as - M /trunk/framework/as25/asunit/framework/TestResult.as Working on asynchronous test case error handling. Seems to be working properly now ------------------------------------------------------------------------ r47 | lukebayes | 2006-03-16 09:30:23 -0800 (Thu, 16 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/TestCase.as Moved call to setUp inside of the try..catch so that errors thrown during calls to setUp get caught and displayed. ------------------------------------------------------------------------ r46 | lukebayes | 2006-03-16 09:28:53 -0800 (Thu, 16 Mar 2006) | 2 lines -Changed paths: - A /trunk/framework/as25/asunit/errors/AssertionPassedError.as - M /trunk/framework/as25/asunit/textui/ResultPrinter.as Added AssertionPassedError to facilitate try..catch successes Updated ResultPrinter so that the traceOutput TextField is hidden until trace is called the first time. This allows us to select the text in the regular output - unless there are trace statements. ------------------------------------------------------------------------ r36 | alimills | 2006-03-08 09:52:56 -0800 (Wed, 08 Mar 2006) | 1 line -Changed paths: - D /trunk/framework/as3/AsUnit.as - A /trunk/framework/as3/AsUnitTestRunner.as renaming AsUnit to AsUnitTestRunner ------------------------------------------------------------------------ r35 | alimills | 2006-03-08 09:50:50 -0800 (Wed, 08 Mar 2006) | 2 lines -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as - D /trunk/framework/as25/AsUnitTestRunner.fla - D /trunk/framework/as25/AsUnitTestRunner.swf - removing FLA and SWF - cleaned up AsUnitTestRunner ------------------------------------------------------------------------ r34 | lukebayes | 2006-03-08 09:40:37 -0800 (Wed, 08 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as Attempting to commit from anonymous (shouldn't work) ------------------------------------------------------------------------ r33 | lukebayes | 2006-03-08 09:38:59 -0800 (Wed, 08 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as Removed bad start ------------------------------------------------------------------------ r32 | lukebayes | 2006-03-08 09:28:15 -0800 (Wed, 08 Mar 2006) | 1 line -Changed paths: - D /trunk/framework/as3/AllTests.as - D /trunk/framework/as3/asunit/AllTests.as - D /trunk/framework/as3/asunit/errors/AllTests.as - D /trunk/framework/as3/asunit/framework/AllTests.as - D /trunk/framework/as3/asunit/runner/AllTests.as - D /trunk/framework/as3/asunit/textui/AllTests.as Removed concrete TestSuites from repository as they were causing conflicts in concrete projects ------------------------------------------------------------------------ r29 | lukebayes | 2006-03-07 12:13:39 -0800 (Tue, 07 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/textui/ResultPrinter.as Changed ResultPrinter to show names instead of company ------------------------------------------------------------------------ r28 | lukebayes | 2006-03-07 09:19:32 -0800 (Tue, 07 Mar 2006) | 3 lines -Changed paths: - M /trunk/framework/as25/asunit/runner/BaseTestRunner.as - M /trunk/framework/as25/asunit/textui/ResultPrinter.as - Fixed infinite loop in async feature - Updated branding to names from company - Added 2.5 version number ------------------------------------------------------------------------ r25 | lukebayes | 2006-03-06 22:42:13 -0800 (Mon, 06 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/Test.as - M /trunk/framework/as25/asunit/framework/TestCase.as - A /trunk/framework/as25/asunit/framework/TestCaseXml.as - M /trunk/framework/as25/asunit/framework/TestFailure.as - M /trunk/framework/as25/asunit/framework/TestSuite.as - M /trunk/framework/as25/asunit/runner/BaseTestRunner.as Added support for singular, asynchronous test cases. Still looking at ways to implement async methods. ------------------------------------------------------------------------ r23 | lukebayes | 2006-03-06 09:28:51 -0800 (Mon, 06 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as - M /trunk/framework/as25/asunit/framework/Assert.as - A /trunk/framework/as25/asunit/framework/AssertMock.as - A /trunk/framework/as25/asunit/framework/AssertTest.as - A /trunk/framework/as25/asunit/framework/TestCaseMock.as - A /trunk/framework/as25/asunit/framework/TestCaseTest.as Adding tests to framework ------------------------------------------------------------------------ r18 | lukebayes | 2006-03-05 22:01:52 -0800 (Sun, 05 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as2/AsUnitUi.swf - M /trunk/framework/as2/com/asunit/ui/Main.as Incremented version number for swfui ------------------------------------------------------------------------ r17 | lukebayes | 2006-03-05 21:48:16 -0800 (Sun, 05 Mar 2006) | 18 lines -Changed paths: - M /trunk/framework/as2/com/asunit/framework/TestRunner.as Implemented changes as per Darren Cook: @@ -553,555 +317,37 @@ all. What are they for, and do they need to be part of the public interface? ------------------------------------------------------------------------ r16 | lukebayes | 2006-03-04 19:02:44 -0800 (Sat, 04 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.swf Checking in the SWF file ------------------------------------------------------------------------ r12 | lukebayes | 2006-03-04 18:17:50 -0800 (Sat, 04 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/framework/TestCase.as Was working on making all method calls asynchronous, but this was non-trivial. Will now look at re-implementing the original support for async TestCases ------------------------------------------------------------------------ r11 | lukebayes | 2006-03-04 18:00:49 -0800 (Sat, 04 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/textui/ResultPrinter.as It didn't do it ------------------------------------------------------------------------ r10 | lukebayes | 2006-03-04 18:00:27 -0800 (Sat, 04 Mar 2006) | 1 line -Changed paths: - M /trunk/framework/as25/asunit/textui/ResultPrinter.as Trying to find out if subversion will insert meta data directly into a file ------------------------------------------------------------------------ r9 | lukebayes | 2006-03-04 17:51:25 -0800 (Sat, 04 Mar 2006) | 3 lines -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as - M /trunk/framework/as25/AsUnitTestRunner.swf - M /trunk/framework/as25/asunit/framework/Assert.as - M /trunk/framework/as25/asunit/framework/TestCase.as - M /trunk/framework/as25/asunit/runner/BaseTestRunner.as - M /trunk/framework/as25/asunit/textui/ResultPrinter.as - Added support for Visual TestCases. - Added support for single-method TestRunners (from the start command) ------------------------------------------------------------------------ r7 | lukebayes | 2006-03-04 17:18:26 -0800 (Sat, 04 Mar 2006) | 2 lines -Changed paths: - M /trunk/framework/as25/AsUnitTestRunner.as - M /trunk/framework/as25/AsUnitTestRunner.fla - M /trunk/framework/as25/AsUnitTestRunner.swf - M /trunk/framework/as25/asunit/framework/Assert.as - M /trunk/framework/as25/asunit/framework/TestCase.as - M /trunk/framework/as25/asunit/framework/TestSuite.as Got TestSuites working. Still need to get Visual TestCases and Async TestCases. ------------------------------------------------------------------------ r6 | lukebayes | 2006-03-04 16:14:34 -0800 (Sat, 04 Mar 2006) | 1 line -Changed paths: - A /trunk/framework/as25 - A /trunk/framework/as25/AsUnitTestRunner.as - A /trunk/framework/as25/AsUnitTestRunner.fla - A /trunk/framework/as25/AsUnitTestRunner.swf - A /trunk/framework/as25/asunit - A /trunk/framework/as25/asunit/errors - A /trunk/framework/as25/asunit/errors/AssertionFailedError.as - A /trunk/framework/as25/asunit/errors/ClassNotFoundError.as - A /trunk/framework/as25/asunit/errors/IllegalOperationError.as - A /trunk/framework/as25/asunit/errors/InstanceNotFoundError.as - A /trunk/framework/as25/asunit/errors/InvocationTargetError.as - A /trunk/framework/as25/asunit/errors/UnimplementedFeatureError.as - A /trunk/framework/as25/asunit/framework - A /trunk/framework/as25/asunit/framework/Assert.as - A /trunk/framework/as25/asunit/framework/ITestListener.as - A /trunk/framework/as25/asunit/framework/Test.as - A /trunk/framework/as25/asunit/framework/TestCase.as - A /trunk/framework/as25/asunit/framework/TestFailure.as - A /trunk/framework/as25/asunit/framework/TestResult.as - A /trunk/framework/as25/asunit/framework/TestSuite.as - A /trunk/framework/as25/asunit/runner - A /trunk/framework/as25/asunit/runner/BaseTestRunner.as - A /trunk/framework/as25/asunit/runner/IResultPrinter.as - A /trunk/framework/as25/asunit/textui - A /trunk/framework/as25/asunit/textui/ResultPrinter.as - A /trunk/framework/as25/asunit/textui/SuccessBar.as - A /trunk/framework/as25/asunit/textui/TestRunner.as Working on custom build for Flash Players 7 and 8 ------------------------------------------------------------------------ r2 | lukebayes | 2006-03-03 16:33:13 -0800 (Fri, 03 Mar 2006) | 1 line -Changed paths: - A /trunk/comm - A /trunk/comm/art - A /trunk/comm/art/icon - A /trunk/comm/art/icon/icon128.png - A /trunk/comm/art/icon/icon16.png - A /trunk/comm/art/icon/icon32.png - A /trunk/comm/art/icon/icon64.png - A /trunk/comm/art/logo - A /trunk/comm/art/logo/AsUnitLogo.png - A /trunk/comm/marketing - A /trunk/comm/marketing/shirt - A /trunk/comm/marketing/shirt/asunit.png - A /trunk/comm/marketing/shirt/asunit_og.png - A /trunk/comm/marketing/shirt/asunit_small.png - A /trunk/comm/marketing/shirt/base.png - A /trunk/comm/marketing/trailer - A /trunk/comm/marketing/trailer/art - A /trunk/comm/marketing/trailer/art/50091688_49960871fa_o.jpg - A /trunk/comm/marketing/trailer/art/AlRamadan.swf - A /trunk/comm/marketing/trailer/art/BillGatesBody.gif - A /trunk/comm/marketing/trailer/art/BillGatesBody.png - A /trunk/comm/marketing/trailer/art/BillGatesBody.psd - A /trunk/comm/marketing/trailer/art/BillGatesHead.psd - A /trunk/comm/marketing/trailer/art/BillGatesHeadBottom.gif - A /trunk/comm/marketing/trailer/art/BillGatesHeadBottom.png - A /trunk/comm/marketing/trailer/art/BillGatesHeadBottom.psd - A /trunk/comm/marketing/trailer/art/BillGatesHeadTop.gif - A /trunk/comm/marketing/trailer/art/BillGatesHeadTop.png - A /trunk/comm/marketing/trailer/art/BillGatesHeadTop.psd - A /trunk/comm/marketing/trailer/art/DavidFilo.jpg - A /trunk/comm/marketing/trailer/art/DavidFilo.psd - A /trunk/comm/marketing/trailer/art/DavidFiloBody.png - A /trunk/comm/marketing/trailer/art/DavidFiloBody.psd - A /trunk/comm/marketing/trailer/art/DavidFiloHead.png - A /trunk/comm/marketing/trailer/art/DavidFiloHead.psd - A /trunk/comm/marketing/trailer/art/Heinemeier.jpg - A /trunk/comm/marketing/trailer/art/HeinemeierBody.png - A /trunk/comm/marketing/trailer/art/HeinemeierBody.psd - A /trunk/comm/marketing/trailer/art/HeinemeierHead.psd - A /trunk/comm/marketing/trailer/art/HeinemeierHeadBottom.png - A /trunk/comm/marketing/trailer/art/HeinemeierHeadBottom.psd - A /trunk/comm/marketing/trailer/art/HeinemeierHeadTop.png - A /trunk/comm/marketing/trailer/art/HeinemeierHeadTop.psd - A /trunk/comm/marketing/trailer/art/JerryYang.jpg - A /trunk/comm/marketing/trailer/art/JerryYang.psd - A /trunk/comm/marketing/trailer/art/JerryYangBody.png - A /trunk/comm/marketing/trailer/art/JerryYangBody.psd - A /trunk/comm/marketing/trailer/art/JerryYangHead.psd - A /trunk/comm/marketing/trailer/art/JerryYangHeadBottom.png - A /trunk/comm/marketing/trailer/art/JerryYangHeadBottom.psd - A /trunk/comm/marketing/trailer/art/JerryYangHeadTop.png - A /trunk/comm/marketing/trailer/art/JerryYangHeadTop.psd - A /trunk/comm/marketing/trailer/art/KevinLynch.psd - A /trunk/comm/marketing/trailer/art/KevinLynchBody.png - A /trunk/comm/marketing/trailer/art/KevinLynchBody.psd - A /trunk/comm/marketing/trailer/art/KevinLynchHead.psd - A /trunk/comm/marketing/trailer/art/KevinLynchHeadBottom.png - A /trunk/comm/marketing/trailer/art/KevinLynchHeadBottom.psd - A /trunk/comm/marketing/trailer/art/KevinLynchHeadTop.png - A /trunk/comm/marketing/trailer/art/KevinLynchHeadTop.psd - A /trunk/comm/marketing/trailer/art/LarryAndSergeyBodies.png - A /trunk/comm/marketing/trailer/art/LarryAndSergeyBodies.psd - A /trunk/comm/marketing/trailer/art/LarryPageBody.png - A /trunk/comm/marketing/trailer/art/LarryPageBody.psd - A /trunk/comm/marketing/trailer/art/LarryPageHead.png - A /trunk/comm/marketing/trailer/art/LarryPageHead.psd - A /trunk/comm/marketing/trailer/art/MitchellBaker.jpg - A /trunk/comm/marketing/trailer/art/MitchellBody.png - A /trunk/comm/marketing/trailer/art/MitchellBody.psd - A /trunk/comm/marketing/trailer/art/MitchellHead.psd - A /trunk/comm/marketing/trailer/art/MitchellHeadBottom.png - A /trunk/comm/marketing/trailer/art/MitchellHeadBottom.psd - A /trunk/comm/marketing/trailer/art/MitchellHeadTop.png - A /trunk/comm/marketing/trailer/art/MitchellHeadTop.psd - A /trunk/comm/marketing/trailer/art/OReilly.jpg - A /trunk/comm/marketing/trailer/art/OReilly.psd - A /trunk/comm/marketing/trailer/art/OReilly2.jpg - A /trunk/comm/marketing/trailer/art/OReillyBody.png - A /trunk/comm/marketing/trailer/art/OReillyBody.psd - A /trunk/comm/marketing/trailer/art/OReillyHead.psd - A /trunk/comm/marketing/trailer/art/OReillyHeadBottom.png - A /trunk/comm/marketing/trailer/art/OReillyHeadBottom.psd - A /trunk/comm/marketing/trailer/art/OReillyHeadTop.png - A /trunk/comm/marketing/trailer/art/OReillyHeadTop.psd - A /trunk/comm/marketing/trailer/art/Schwartz.jpg - A /trunk/comm/marketing/trailer/art/Schwartz.psd - A /trunk/comm/marketing/trailer/art/SchwartzBody.png - A /trunk/comm/marketing/trailer/art/SchwartzBody.psd - A /trunk/comm/marketing/trailer/art/SchwartzHead.psd - A /trunk/comm/marketing/trailer/art/SchwartzHeadBottom.png - A /trunk/comm/marketing/trailer/art/SchwartzHeadBottom.psd - A /trunk/comm/marketing/trailer/art/SchwartzHeadTop.png - A /trunk/comm/marketing/trailer/art/SchwartzHeadTop.psd - A /trunk/comm/marketing/trailer/art/SergeyAndLarry.jpg - A /trunk/comm/marketing/trailer/art/SergeyBody.png - A /trunk/comm/marketing/trailer/art/SergeyBody.psd - A /trunk/comm/marketing/trailer/art/SergeyHead.psd - A /trunk/comm/marketing/trailer/art/SergeyHeadBottom.png - A /trunk/comm/marketing/trailer/art/SergeyHeadBottom.psd - A /trunk/comm/marketing/trailer/art/SergeyHeadTop.png - A /trunk/comm/marketing/trailer/art/SergeyHeadTop.psd - A /trunk/comm/marketing/trailer/art/SteveJobsBody.png - A /trunk/comm/marketing/trailer/art/SteveJobsBody.psd - A /trunk/comm/marketing/trailer/art/SteveJobsHead.psd - A /trunk/comm/marketing/trailer/art/SteveJobsHeadBottom.png - A /trunk/comm/marketing/trailer/art/SteveJobsHeadBottom.psd - A /trunk/comm/marketing/trailer/art/SteveJobsHeadTop.png - A /trunk/comm/marketing/trailer/art/SteveJobsHeadTop.psd - A /trunk/comm/marketing/trailer/art/melynch_white_bckgd_copy.jpg - A /trunk/comm/marketing/trailer/art/normal_BillGates.jpg - A /trunk/comm/marketing/trailer/art/steve_jobs1.jpg - A /trunk/comm/marketing/trailer/fla - A /trunk/comm/marketing/trailer/fla/AsUnit-TechnicalMerit-Trailer.swf - A /trunk/comm/marketing/trailer/fla/Trailer.fla - A /trunk/comm/marketing/trailer/snd - A /trunk/comm/marketing/trailer/snd/outsidethebox-1.mp3 - A /trunk/comm/marketing/trailer/snd/outsidethebox-2.mp3 - A /trunk/comm/marketing/trailer/snd/outsidethebox-3.mp3 - A /trunk/comm/marketing/trailer/snd/part1.mp3 - A /trunk/comm/marketing/trailer/snd/part2.mp3 - A /trunk/comm/marketing/trailer/snd/part3.mp3 - A /trunk/comm/marketing/trailer/snd/part4.mp3 - A /trunk/comm/marketing/trailer/snd/part5.mp3 - A /trunk/comm/marketing/trailer/snd/part6.mp3 - A /trunk/comm/marketing/trailer/snd/part7.mp3 - A /trunk/comm/marketing/trailer/snd/part8.mp3 - A /trunk/comm/marketing/trailer/snd/part9.mp3 - A /trunk/comm/training - A /trunk/comm/training/yahoo - A /trunk/comm/training/yahoo/AllTests.as - A /trunk/comm/training/yahoo/LivePreview.as - A /trunk/comm/training/yahoo/LivePreviewRunner.as - A /trunk/comm/training/yahoo/asunit - A /trunk/comm/training/yahoo/asunit/AllTests.as - A /trunk/comm/training/yahoo/asunit/example - A /trunk/comm/training/yahoo/asunit/example/AllTests.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewController.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewControllerTest.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewModel.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewModelMock.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewModelTest.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewView.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewViewMock.as - A /trunk/comm/training/yahoo/asunit/example/LivePreviewViewTest.as - A /trunk/comm/training/yahoo/asunit/example/OutputFormatter.as - A /trunk/comm/training/yahoo/asunit/example/OutputFormatterTest.as - A /trunk/comm/training/yahoo/bin - A /trunk/comm/training/yahoo/bin/LivePreview.html - A /trunk/comm/training/yahoo/bin/LivePreviewRunner.html - A /trunk/comm/training/yahoo/doc - A /trunk/comm/training/yahoo/doc/PresentationHandout.doc - A /trunk/comm/training/yahoo/doc/PresentationNotes.doc - A /trunk/comm/www - A /trunk/comm/www/art - A /trunk/comm/www/art/AsUnitLogo.png - A /trunk/comm/www/art/DownloadFramework.png - A /trunk/comm/www/art/DownloadMXP.png - A /trunk/comm/www/art/DownloadXULUI.png - A /trunk/comm/www/art/GetInvolved.png - A /trunk/comm/www/art/GetStarted-img.png - A /trunk/comm/www/art/GetStarted.png - A /trunk/comm/www/art/GetStartedText.png - A /trunk/comm/www/art/LearnMore.png - A /trunk/comm/www/art/TagLine.png - A /trunk/comm/www/html - A /trunk/comm/www/html/AsUnitUi-2.7.swf - A /trunk/comm/www/html/AsUnitUi.swf - A /trunk/comm/www/html/articles - A /trunk/comm/www/html/articles/1-YourFirstUnitTest - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/YourFirstUnitTest.doc - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/AsUnitUi-Failing.gif - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/AsUnitUi-Passing-1.gif - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/AsUnitUi-Passing.gif - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/AsUnitUi-Passing.psd - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/SimpleTestCase.gif - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/img/SimpleTestCase.psd - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/Main.fla - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/Main.swf - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/MainIncl.as - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/Sample.zip - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/com - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/com/yourdomain - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/com/yourdomain/yourproject - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/com/yourdomain/yourproject/Main.as - A /trunk/comm/www/html/articles/1-YourFirstUnitTest/sample/com/yourdomain/yourproject/MainTest.as - A /trunk/comm/www/html/css - A /trunk/comm/www/html/css/AsUnit.css - A /trunk/comm/www/html/css/Style.css - A /trunk/comm/www/html/docs - A /trunk/comm/www/html/docs/img - A /trunk/comm/www/html/docs/img/extendsmovieclip-lib.jpg - A /trunk/comm/www/html/docs/img/extendsmovieclip-nonlib.jpg - A /trunk/comm/www/html/docs/img/simpleclass.jpg - A /trunk/comm/www/html/docs/present - A /trunk/comm/www/html/docs/present/Presentation-b.doc - A /trunk/comm/www/html/faq - A /trunk/comm/www/html/faq/AsUnitFramework3.txt - A /trunk/comm/www/html/files - A /trunk/comm/www/html/files/learning - A /trunk/comm/www/html/files/learning/PhoneNumberExample.zip - A /trunk/comm/www/html/files/learning/createclass.zip - A /trunk/comm/www/html/files/releases - A /trunk/comm/www/html/files/releases/FlashUi-20060302.mxp - A /trunk/comm/www/html/files/releases/Framework-20060302.zip - A /trunk/comm/www/html/files/releases/SwfUi-20060302.swf - A /trunk/comm/www/html/img - A /trunk/comm/www/html/img/AsUnitLogo.gif - A /trunk/comm/www/html/img/DownloadFramework.gif - A /trunk/comm/www/html/img/DownloadFrameworkText.gif - A /trunk/comm/www/html/img/DownloadMXP.gif - A /trunk/comm/www/html/img/DownloadMXPText.gif - A /trunk/comm/www/html/img/DownloadXULUI.gif - A /trunk/comm/www/html/img/DownloadXULUIText.gif - A /trunk/comm/www/html/img/GetInvolved.gif - A /trunk/comm/www/html/img/GetInvolvedText.gif - A /trunk/comm/www/html/img/GetStarted.gif - A /trunk/comm/www/html/img/GetStartedText.gif - A /trunk/comm/www/html/img/LearnMore.gif - A /trunk/comm/www/html/img/LearnMoreText.gif - A /trunk/comm/www/html/img/TagLine.gif - A /trunk/comm/www/html/index.html - A /trunk/comm/www/html/version.xml - A /trunk/flashui - A /trunk/flashui/FlashUi.mxi - A /trunk/flashui/FlashUi.mxp - A /trunk/flashui/LICENSE.txt - A /trunk/flashui/README.txt - A /trunk/flashui/RELEASE_NOTES.txt - A /trunk/flashui/createClass - A /trunk/flashui/createClass/ClassTemplate.as - A /trunk/flashui/createClass/ConfigureFileSeparator.jsfl - A /trunk/flashui/createClass/Create Class.jsfl - A /trunk/flashui/createClass/Create Class.xul - A /trunk/flashui/createClass/TestClassTemplate.as - A /trunk/flashui/createClass/dll - A /trunk/flashui/createClass/dll/Debug - A /trunk/flashui/createClass/dll/Debug/FileIo.dll - A /trunk/flashui/createClass/dll/Debug/FileIo.exp - A /trunk/flashui/createClass/dll/Debug/FileIo.ilk - A /trunk/flashui/createClass/dll/Debug/FileIo.lib - A /trunk/flashui/createClass/dll/Debug/FileIo.obj - A /trunk/flashui/createClass/dll/Debug/FileIo.pch - A /trunk/flashui/createClass/dll/Debug/FileIo.pdb - A /trunk/flashui/createClass/dll/Debug/vc60.idb - A /trunk/flashui/createClass/dll/Debug/vc60.pdb - A /trunk/flashui/createClass/dll/FileIo.c - A /trunk/flashui/createClass/dll/FileIo.dsp - A /trunk/flashui/createClass/dll/FileIo.dsw - A /trunk/flashui/createClass/dll/FileIo.ncb - A /trunk/flashui/createClass/dll/FileIo.opt - A /trunk/flashui/createClass/dll/FileIo.plg - A /trunk/flashui/createClass/dll/mm_jsapi.h - A /trunk/flashui/createClass/fileio.dll - A /trunk/flashui/createTestSuites - A /trunk/flashui/createTestSuites/Build Test Suites.jsfl - A /trunk/flashui/createTestSuites/TestSuiteTemplate.as - A /trunk/framework - A /trunk/framework/as2 - A /trunk/framework/as2/AsUnitUi.swf - A /trunk/framework/as2/Sys.as - A /trunk/framework/as2/com - A /trunk/framework/as2/com/asunit - A /trunk/framework/as2/com/asunit/controls - A /trunk/framework/as2/com/asunit/controls/LocalOutputPanel.as - A /trunk/framework/as2/com/asunit/controls/LocalOutputPanelTest.as - A /trunk/framework/as2/com/asunit/controls/LocalOutputPanelTextArea.as - A /trunk/framework/as2/com/asunit/controls/LocalOutputPanelTextAreaTest.as - A /trunk/framework/as2/com/asunit/controls/LocalOutputPanelTitleBar.as - A /trunk/framework/as2/com/asunit/controls/ResizeHandle.as - A /trunk/framework/as2/com/asunit/controls/ScrollArrow.as - A /trunk/framework/as2/com/asunit/controls/ScrollHandle.as - A /trunk/framework/as2/com/asunit/controls/ScrollListener.as - A /trunk/framework/as2/com/asunit/controls/TextScroller.as - A /trunk/framework/as2/com/asunit/controls/shapes - A /trunk/framework/as2/com/asunit/controls/shapes/Rectangle.as - A /trunk/framework/as2/com/asunit/controls/shapes/Triangle.as - A /trunk/framework/as2/com/asunit/framework - A /trunk/framework/as2/com/asunit/framework/AsUnit.as - A /trunk/framework/as2/com/asunit/framework/Assert.as - A /trunk/framework/as2/com/asunit/framework/Assertion.as - A /trunk/framework/as2/com/asunit/framework/Reflection.as - A /trunk/framework/as2/com/asunit/framework/Test.as - A /trunk/framework/as2/com/asunit/framework/TestCase.as - A /trunk/framework/as2/com/asunit/framework/TestCaseXml.as - A /trunk/framework/as2/com/asunit/framework/TestFailure.as - A /trunk/framework/as2/com/asunit/framework/TestResult.as - A /trunk/framework/as2/com/asunit/framework/TestRunner.as - A /trunk/framework/as2/com/asunit/framework/TestSetup.as - A /trunk/framework/as2/com/asunit/framework/TestSuite.as - A /trunk/framework/as2/com/asunit/ui - A /trunk/framework/as2/com/asunit/ui/Main.as - A /trunk/framework/as2/com/asunit/ui/RemoteVersion.as - A /trunk/framework/as2/com/asunit/ui/SuccessMeter.as - A /trunk/framework/as2/com/asunit/util - A /trunk/framework/as2/com/asunit/util/Comparable.as - A /trunk/framework/as2/com/asunit/util/EventListener.as - A /trunk/framework/as2/com/asunit/util/EventSource.as - A /trunk/framework/as2/com/asunit/util/LocalConnClient.as - A /trunk/framework/as2/com/asunit/util/LocalConnGateway.as - A /trunk/framework/as2/com/asunit/util/LocalConnServer.as - A /trunk/framework/as2/com/asunit/util/LocalMessageBroker.as - A /trunk/framework/as2/com/asunit/util/Observable.as - A /trunk/framework/as2/com/asunit/util/TextFile.as - A /trunk/framework/as3 - A /trunk/framework/as3/AllTests.as - A /trunk/framework/as3/AsUnit.as - A /trunk/framework/as3/asunit - A /trunk/framework/as3/asunit/AllTests.as - A /trunk/framework/as3/asunit/errors - A /trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as - A /trunk/framework/as3/asunit/errors/AllTests.as - A /trunk/framework/as3/asunit/errors/AssertionFailedError.as - A /trunk/framework/as3/asunit/errors/ClassNotFoundError.as - A /trunk/framework/as3/asunit/errors/InstanceNotFoundError.as - A /trunk/framework/as3/asunit/errors/InvocationTargetError.as - A /trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as - A /trunk/framework/as3/asunit/framework - A /trunk/framework/as3/asunit/framework/AllTests.as - A /trunk/framework/as3/asunit/framework/Assert.as - A /trunk/framework/as3/asunit/framework/AssertTest.as - A /trunk/framework/as3/asunit/framework/AsynchronousTestCase.as - A /trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as - A /trunk/framework/as3/asunit/framework/MockData.xml - A /trunk/framework/as3/asunit/framework/Test.as - A /trunk/framework/as3/asunit/framework/TestCase.as - A /trunk/framework/as3/asunit/framework/TestCaseMock.as - A /trunk/framework/as3/asunit/framework/TestCaseTest.as - A /trunk/framework/as3/asunit/framework/TestFailure.as - A /trunk/framework/as3/asunit/framework/TestFailureTest.as - A /trunk/framework/as3/asunit/framework/TestListener.as - A /trunk/framework/as3/asunit/framework/TestResult.as - A /trunk/framework/as3/asunit/framework/TestSuite.as - A /trunk/framework/as3/asunit/framework/TestSuiteTest.as - A /trunk/framework/as3/asunit/framework/VisualTestCaseTest.as - A /trunk/framework/as3/asunit/runner - A /trunk/framework/as3/asunit/runner/AllTests.as - A /trunk/framework/as3/asunit/runner/BaseTestRunner.as - A /trunk/framework/as3/asunit/runner/BaseTestRunnerMock.as - A /trunk/framework/as3/asunit/runner/TestRunListener.as - A /trunk/framework/as3/asunit/runner/TestSuiteLoader.as - A /trunk/framework/as3/asunit/runner/Version.as - A /trunk/framework/as3/asunit/textui - A /trunk/framework/as3/asunit/textui/AllTests.as - A /trunk/framework/as3/asunit/textui/ResultPrinter.as - A /trunk/framework/as3/asunit/textui/TestRunner.as - A /trunk/framework/as3/asunit/util - A /trunk/framework/as3/asunit/util/Properties.as - A /trunk/installers - A /trunk/installers/win - A /trunk/installers/win/AsUnit-20060301.msi - A /trunk/swfui - A /trunk/swfui/AsUnitUi.as - A /trunk/swfui/AsUnitUi.fla - A /trunk/xului - A /trunk/xului/bin - A /trunk/xului/bin/AsUnit.xpi - A /trunk/xului/exploration - A /trunk/xului/exploration/executable - A /trunk/xului/exploration/executable/AsUnit.cpp - A /trunk/xului/exploration/executable/AsUnit.exe - A /trunk/xului/exploration/executable/ResHack.zip - A /trunk/xului/exploration/executable/art - A /trunk/xului/exploration/executable/art/16.ico - A /trunk/xului/exploration/executable/art/32.ico - A /trunk/xului/exploration/executable/art/64.ico - A /trunk/xului/exploration/executable/gcc.txt - A /trunk/xului/exploration/executable/xulrunner.exe - A /trunk/xului/exploration/installer - A /trunk/xului/exploration/installer/tools.txt - A /trunk/xului/exploration/playerglobal - A /trunk/xului/exploration/playerglobal/doc - A /trunk/xului/exploration/playerglobal/doc/CatalogParser.as - A /trunk/xului/exploration/playerglobal/doc/CatalogParser.fla - A /trunk/xului/exploration/playerglobal/doc/CatalogParser.swf - A /trunk/xului/exploration/playerglobal/doc/README.txt - A /trunk/xului/exploration/playerglobal/doc/catalog.xml - A /trunk/xului/src - A /trunk/xului/src/TODO.txt - A /trunk/xului/src/application.ini - A /trunk/xului/src/build.sh - A /trunk/xului/src/chrome - A /trunk/xului/src/chrome/AsUnit.jar - A /trunk/xului/src/chrome/asunit - A /trunk/xului/src/chrome/asunit/content - A /trunk/xului/src/chrome/asunit/content/asunit - A /trunk/xului/src/chrome/asunit/content/asunit/AsUnit.xul - A /trunk/xului/src/chrome/asunit/content/asunit/AsUnitOverlay.xul - A /trunk/xului/src/chrome/asunit/content/asunit/AsUnitUi.html - A /trunk/xului/src/chrome/asunit/content/asunit/DebugOutput.xul - A /trunk/xului/src/chrome/asunit/content/asunit/EditPath.xul - A /trunk/xului/src/chrome/asunit/content/asunit/Finder.xul - A /trunk/xului/src/chrome/asunit/content/asunit/SetupWizard.xul - A /trunk/xului/src/chrome/asunit/content/asunit/UnitTestOutput.xul - A /trunk/xului/src/chrome/asunit/content/asunit/about.xul - A /trunk/xului/src/chrome/asunit/content/asunit/contents.rdf - A /trunk/xului/src/chrome/asunit/content/asunit/data - A /trunk/xului/src/chrome/asunit/content/asunit/data/as25classes.txt - A /trunk/xului/src/chrome/asunit/content/asunit/data/as2classes.txt - A /trunk/xului/src/chrome/asunit/content/asunit/data/as3classes.txt - A /trunk/xului/src/chrome/asunit/content/asunit/script - A /trunk/xului/src/chrome/asunit/content/asunit/script/As25Entities.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/As2Entities.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/As3Entities.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/AsDirectory.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/AsFile.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/AsFileTest.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/AsUnitOverlay.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/ClassModel.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/CreateClass.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/CreateNewClass.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/DebugOutput.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EditPath.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/Entity.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EntityTable.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EntityTableBuilder.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EntityTableTest.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/Event.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EventListener.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/EventSource.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/Finder.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/GenerateTestSuites.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/ProjectModel.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/SetupWizard.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/StubEntity.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/TestCase.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/UnitTestOutput.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/WrittenFile.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassBody.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassConstructor.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassDeclaration.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassHeader.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3ClassSerializable.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3MockDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3TestCaseConfig.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3TestCaseConstructor.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3TestCaseDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/As3TestSuiteDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassBody.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassConstructor.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassDeclaration.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassHeader.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/ClassSerializable.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/DoTrace.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/MainMethod.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/MockDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/TestCaseConfig.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/TestCaseDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/TestSuiteDefinition.js - A /trunk/xului/src/chrome/asunit/content/asunit/script/tokens/TokenFactory.js - A /trunk/xului/src/chrome/asunit/content/asunit/style - A /trunk/xului/src/chrome/asunit/content/asunit/style/AsUnit.css - A /trunk/xului/src/chrome/asunit/content/asunit/style/AsUnit.png - A /trunk/xului/src/chrome/chrome.manifest - A /trunk/xului/src/chrome/en-US - A /trunk/xului/src/chrome/en-US/locale - A /trunk/xului/src/chrome/en-US/locale/asunit - A /trunk/xului/src/chrome/en-US/locale/asunit/AsUnit.dtd - A /trunk/xului/src/chrome/en-US.jar - A /trunk/xului/src/defaults - A /trunk/xului/src/defaults/preferences - A /trunk/xului/src/defaults/preferences/prefs.js - A /trunk/xului/src/install.rdf Initial build of SVN on sourceforge! ------------------------------------------------------------------------ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-06-03 23:19:56
|
Revision: 168 http://svn.sourceforge.net/asunit/?rev=168&view=rev Author: lukebayes Date: 2007-06-03 16:19:59 -0700 (Sun, 03 Jun 2007) Log Message: ----------- Updated IResultPrinter to support trace output for terminal Modified Paths: -------------- trunk/framework/as25/asunit/runner/IResultPrinter.as Modified: trunk/framework/as25/asunit/runner/IResultPrinter.as =================================================================== --- trunk/framework/as25/asunit/runner/IResultPrinter.as 2007-06-03 23:05:58 UTC (rev 167) +++ trunk/framework/as25/asunit/runner/IResultPrinter.as 2007-06-03 23:19:59 UTC (rev 168) @@ -4,5 +4,7 @@ interface asunit.runner.IResultPrinter extends ITestListener { public function printResult(result:TestResult, runTime:Number):Void; - public function trace():Void; + public function traceln():Void; + public function setShowTrace(showTrace:Boolean):Void; + public function getShowTrace():Boolean; } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-06-03 23:05:57
|
Revision: 167 http://svn.sourceforge.net/asunit/?rev=167&view=rev Author: lukebayes Date: 2007-06-03 16:05:58 -0700 (Sun, 03 Jun 2007) Log Message: ----------- Added fix to patch so that UI draws properly for both Flex and CS3 Modified Paths: -------------- trunk/framework/as3/asunit/textui/TestRunner.as Modified: trunk/framework/as3/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as3/asunit/textui/TestRunner.as 2007-06-03 22:41:21 UTC (rev 166) +++ trunk/framework/as3/asunit/textui/TestRunner.as 2007-06-03 23:05:58 UTC (rev 167) @@ -43,6 +43,7 @@ private function configureListeners():void { addEventListener(Event.ADDED_TO_STAGE, addedHandler); + addEventListener(Event.ADDED, addedHandler); } protected function addedHandler(event:Event):void { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-06-03 22:41:23
|
Revision: 166 http://svn.sourceforge.net/asunit/?rev=166&view=rev Author: lukebayes Date: 2007-06-03 15:41:21 -0700 (Sun, 03 Jun 2007) Log Message: ----------- Added support for shell trace output Modified Paths: -------------- trunk/framework/as25/asunit/runner/BaseTestRunner.as trunk/framework/as25/asunit/textui/ResultPrinter.as trunk/framework/as25/asunit/textui/TestRunner.as Modified: trunk/framework/as25/asunit/runner/BaseTestRunner.as =================================================================== --- trunk/framework/as25/asunit/runner/BaseTestRunner.as 2007-06-03 22:13:34 UTC (rev 165) +++ trunk/framework/as25/asunit/runner/BaseTestRunner.as 2007-06-03 22:41:21 UTC (rev 166) @@ -27,6 +27,7 @@ public function start(testCase:Function, testMethod:String, showTrace:Boolean):TestResult { try { + getPrinter().setShowTrace(showTrace); var suite:Test = Test(new testCase(testMethod)); return doRun(suite, showTrace); } @@ -60,7 +61,7 @@ } public static function trace(msg:String):Void { - getInstance().getPrinter().trace(msg); + getInstance().getPrinter().traceln(msg); } public static function getInstance():BaseTestRunner { Modified: trunk/framework/as25/asunit/textui/ResultPrinter.as =================================================================== --- trunk/framework/as25/asunit/textui/ResultPrinter.as 2007-06-03 22:13:34 UTC (rev 165) +++ trunk/framework/as25/asunit/textui/ResultPrinter.as 2007-06-03 22:41:21 UTC (rev 166) @@ -50,7 +50,7 @@ createSuccessBar(); } - public function trace():Void { + public function traceln():Void { traceOutput._visible = true; traceOutput.text += arguments.toString() + "\n"; traceOutput.scroll = traceOutput.maxscroll; @@ -162,6 +162,14 @@ bar.height = barHeight; } + public function setShowTrace(showTrace:Boolean):Void { + this.showTrace = showTrace; + } + + public function getShowTrace():Boolean { + return showTrace; + } + public function printResult(result:TestResult, runTime:Number):Void { printHeader(runTime); printErrors(result); @@ -170,7 +178,7 @@ bar.setSuccess(result.wasSuccessful()); if(showTrace) { - trace(textArea.text); + trace(textArea.text.split("\r").join("\n")); } } Modified: trunk/framework/as25/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as25/asunit/textui/TestRunner.as 2007-06-03 22:13:34 UTC (rev 165) +++ trunk/framework/as25/asunit/textui/TestRunner.as 2007-06-03 22:41:21 UTC (rev 166) @@ -10,6 +10,7 @@ * file system, etc. */ class asunit.textui.TestRunner extends BaseTestRunner { + public static var SHOW_TRACE:Boolean = true; public function TestRunner() { super(ResultPrinter); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-06-03 22:13:49
|
Revision: 165 http://svn.sourceforge.net/asunit/?rev=165&view=rev Author: lukebayes Date: 2007-06-03 15:13:34 -0700 (Sun, 03 Jun 2007) Log Message: ----------- Added line feeds to showTrace command for better shell integration Modified Paths: -------------- trunk/framework/as3/asunit/textui/ResultPrinter.as Modified: trunk/framework/as3/asunit/textui/ResultPrinter.as =================================================================== --- trunk/framework/as3/asunit/textui/ResultPrinter.as 2007-05-29 18:29:18 UTC (rev 164) +++ trunk/framework/as3/asunit/textui/ResultPrinter.as 2007-06-03 22:13:34 UTC (rev 165) @@ -87,7 +87,7 @@ bar.setSuccess(result.wasSuccessful()); if(showTrace) { - trace(textArea.text); + trace(textArea.text.split("\r").join("\n")); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-05-29 18:30:03
|
Revision: 164 http://svn.sourceforge.net/asunit/?rev=164&view=rev Author: lukebayes Date: 2007-05-29 11:29:18 -0700 (Tue, 29 May 2007) Log Message: ----------- Updated comment for AssertNotSame as per Brad Beattie update Modified Paths: -------------- trunk/framework/as3/asunit/framework/Assert.as Modified: trunk/framework/as3/asunit/framework/Assert.as =================================================================== --- trunk/framework/as3/asunit/framework/Assert.as 2007-05-15 17:32:43 UTC (rev 163) +++ trunk/framework/as3/asunit/framework/Assert.as 2007-05-29 18:29:18 UTC (rev 164) @@ -181,7 +181,7 @@ failNotSame(message, expected, actual); } /** - * Asserts that two objects refer to the same object. If they are not + * Asserts that two objects do not refer to the same object. If they do, * an AssertionFailedError is thrown with the given message. */ static public function assertNotSame(...args:Array):void { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-05-15 17:32:45
|
Revision: 163 http://svn.sourceforge.net/asunit/?rev=163&view=rev Author: lukebayes Date: 2007-05-15 10:32:43 -0700 (Tue, 15 May 2007) Log Message: ----------- Added patch contributed by Eric Skogen for Flash Authoring CS3 support Modified Paths: -------------- trunk/framework/as3/asunit/textui/TestRunner.as Modified: trunk/framework/as3/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as3/asunit/textui/TestRunner.as 2007-03-26 23:09:08 UTC (rev 162) +++ trunk/framework/as3/asunit/textui/TestRunner.as 2007-05-15 17:32:43 UTC (rev 163) @@ -42,7 +42,7 @@ } private function configureListeners():void { - addEventListener(Event.ADDED, addedHandler); + addEventListener(Event.ADDED_TO_STAGE, addedHandler); } protected function addedHandler(event:Event):void { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2007-03-26 23:09:07
|
Revision: 162 http://svn.sourceforge.net/asunit/?rev=162&view=rev Author: alimills Date: 2007-03-26 16:09:08 -0700 (Mon, 26 Mar 2007) Log Message: ----------- removing modified mx LayoutManager Modified Paths: -------------- trunk/framework/as3/asunit/framework/TestCase.as Removed Paths: ------------- trunk/framework/as3/mx/ Modified: trunk/framework/as3/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCase.as 2007-02-27 21:57:22 UTC (rev 161) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-03-26 23:09:08 UTC (rev 162) @@ -123,6 +123,9 @@ try { var manager:Class = getDefinitionByName("mx.managers.LayoutManager") as Class; layoutManager = manager["getInstance"](); + if(!layoutManager.hasOwnProperty("resetAll")) { + throw new Error("TestCase :: mx.managers.LayoutManager missing resetAll method"); + } } catch(e:Error) { layoutManager = new Object(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2007-02-27 21:57:24
|
Revision: 161 http://svn.sourceforge.net/asunit/?rev=161&view=rev Author: alimills Date: 2007-02-27 13:57:22 -0800 (Tue, 27 Feb 2007) Log Message: ----------- adding check for AssertionPassedError Modified Paths: -------------- trunk/framework/as25/asunit/framework/TestCase.as Modified: trunk/framework/as25/asunit/framework/TestCase.as =================================================================== --- trunk/framework/as25/asunit/framework/TestCase.as 2007-02-23 00:10:04 UTC (rev 160) +++ trunk/framework/as25/asunit/framework/TestCase.as 2007-02-27 21:57:22 UTC (rev 161) @@ -2,6 +2,7 @@ import asunit.framework.Test; import asunit.framework.TestResult; import asunit.errors.AssertionFailedError; +import asunit.errors.AssertionPassedError; class asunit.framework.TestCase extends Assert implements Test { private var className:String = "[default]"; @@ -110,7 +111,7 @@ if(e instanceof AssertionFailedError) { result.addFailure(this, AssertionFailedError(e)); } - else { + else if(!(e instanceof AssertionPassedError)) { result.addError(this, e); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-02-23 00:10:12
|
Revision: 160 http://svn.sourceforge.net/asunit/?rev=160&view=rev Author: lukebayes Date: 2007-02-22 16:10:04 -0800 (Thu, 22 Feb 2007) Log Message: ----------- Updated assertEquals method so that it does not compare by reference, use assertSame for that functionality Modified Paths: -------------- trunk/framework/as25/asunit/framework/Assert.as Modified: trunk/framework/as25/asunit/framework/Assert.as =================================================================== --- trunk/framework/as25/asunit/framework/Assert.as 2007-02-16 00:09:02 UTC (rev 159) +++ trunk/framework/as25/asunit/framework/Assert.as 2007-02-23 00:10:04 UTC (rev 160) @@ -108,7 +108,7 @@ } else if(assertion2["equals"] != undefined) { addTestResult(String(msg), "assertEquals", assertion2["equals"](assertion1)); } else { - addTestResult(format(String(msg), assertion1, assertion2), "assertEquals", assertion1 === assertion2); + addTestResult(format(String(msg), assertion1, assertion2), "assertEquals", assertion1 == assertion2); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-02-16 00:09:02
|
Revision: 159 http://svn.sourceforge.net/asunit/?rev=159&view=rev Author: lukebayes Date: 2007-02-15 16:09:02 -0800 (Thu, 15 Feb 2007) Log Message: ----------- added more useful output for assertEquals failures Modified Paths: -------------- trunk/framework/as25/asunit/framework/Assert.as Modified: trunk/framework/as25/asunit/framework/Assert.as =================================================================== --- trunk/framework/as25/asunit/framework/Assert.as 2007-02-10 06:46:13 UTC (rev 158) +++ trunk/framework/as25/asunit/framework/Assert.as 2007-02-16 00:09:02 UTC (rev 159) @@ -108,7 +108,7 @@ } else if(assertion2["equals"] != undefined) { addTestResult(String(msg), "assertEquals", assertion2["equals"](assertion1)); } else { - addTestResult(String(msg), "assertEquals", assertion1 === assertion2); + addTestResult(format(String(msg), assertion1, assertion2), "assertEquals", assertion1 === assertion2); } } @@ -358,6 +358,18 @@ throw new AssertionFailedError(msg); } +// private static function failNotEquals(message:String, expected:Object, actual:Object):Void { +// fail(format(message, expected, actual)); +// } + + private static function format(message:String, expected:Object, actual:Object):String { + var formatted:String = ""; + if(message != null) { + formatted = message + " "; + } + return formatted + "expected:<" + expected + "> but was:<" + actual + ">"; + } + public static function failError(msg:String):Void { throw new IllegalOperationError(msg); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |