Shopping Cart My Cart Account Log In Walkthrough IDE Integrations Contact Partner  
Polystyle
The Elegant, Intelligent Source Code Formatter

Click Here To Download A Free Trial!
C/C++   PerlPascal/Delphi
C#   CSSCMAC
Java Javascript   PHP 
JSP HTMLPython
ASP Visual BasicActionscript
Home Features Documentation Buy Polystyle Download  
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!

  • Home Features Documentation Buy Polystyle Download  

    Click Here To Download A Free Trial!

    Copyright © Flashbulb Studios. All rights reserved.