|
From: <i_t...@us...> - 2008-07-29 09:12:52
|
Revision: 202
http://asunit.svn.sourceforge.net/asunit/?rev=202&view=rev
Author: i_tyrrell
Date: 2008-07-29 09:13:01 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Renamed print() to _print() - Flash (IDE) compiler was throwing errors on number of arguments passed to function.
Modified Paths:
--------------
branches/ityrrell/framework/as25/asunit/textui/ResultPrinter.as
Modified: branches/ityrrell/framework/as25/asunit/textui/ResultPrinter.as
===================================================================
--- branches/ityrrell/framework/as25/asunit/textui/ResultPrinter.as 2008-07-29 08:29:10 UTC (rev 201)
+++ branches/ityrrell/framework/as25/asunit/textui/ResultPrinter.as 2008-07-29 09:13:01 UTC (rev 202)
@@ -77,7 +77,11 @@
textArea.text += (arguments.toString() + "\n");
}
- public function print():Void {
+ /*
+ * Flash IDE compiler mandates that "print must have two parameters",
+ * as a workaround have renamed to _print.
+ */
+ public function _print():Void {
textArea.text += (arguments.toString());
}
@@ -164,7 +168,7 @@
private function printFooter(result:TestResult):Void {
println();
if (result.wasSuccessful()) {
- print("OK");
+ _print("OK");
println (" (" + result.runCount() + " test" + (result.runCount() == 1 ? "": "s") + ")");
} else {
println("FAILURES!!!");
@@ -187,14 +191,14 @@
* @see asunit.framework.TestListener#addError(Test, Throwable)
*/
public function addError(test:Test, t:Error):Void {
- print("E");
+ _print("E");
}
/**
* @see asunit.framework.TestListener#addFailure(Test, AssertionFailedError)
*/
public function addFailure(test:Test, t:AssertionFailedError):Void {
- print("F");
+ _print("F");
}
/**
@@ -221,7 +225,7 @@
public function startTest(test:Test):Void {
var count:Number = test.countTestCases();
for(var i:Number=0; i < count; i++) {
- print(".");
+ _print(".");
if (fColumn++ >= 80) {
println();
fColumn = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|