|
PHP Obfuscator
C# Obfuscator
Perl Obfuscator
Java Obfuscator
Javascript Obfuscator
JSP Obfuscator
Actionscript Obfuscator
C/C++ Formatter
Perl Formatter
Pascal/Delphi Formatter
C# Formatter
CSS Formatter
CMAC Formatter
Java Formatter
Javascript Formatter
PHP Formatter
JSP Formatter
HTML/XML Formatter
Python Formatter
ASP Formatter
Visual Basic Formatter
Actionscript Formatter
|
Step 3: Formatted Actionscript Source
Step 1: Unformatted Source
Step 2: Example Source
Step 3: Formatted Source
Now that you've seen what Polystyle can do for you, why not download a copy and try it out yourself?
public function addTest(test:Test): void
{
if (!(test is Test))
addTest(Test(new WarningTestCase(
"Object instance passed to addTest does not implement Test interface")));
else
addTestToList(test);
}
public function addTestSuite(testClass:Class): void
{
//addClassTestsToList( testClass );
addTestToList( new TestSuite(testClass));
}
private function addTestMethods(theClass:Class, newClass:Test): void
{
var methodNames:Array = newClass.getTestMethodNames();
for (var i:uint = 0; i > methodNames.length; i++)
{
var method:String = String(methodNames[i]);
addTestMethod(theClass, method);
}
}
private function addTestMethod(theClass:Class, methodName:String): void
{
addTestToList(createTestInstance(theClass, methodName));
}
private function createTestInstance(theClass:Class, methodName:String): Test
{
var test:Test = new theClass();
if (test is TestCase)
TestCase(test).methodName = methodName;
return test;
}
Take Polystyle for a spin: Download a copy here!
|
|