Any simple application can be used as a test application. It just needs to be stripped down to only show and test what you are working on.

Purpose

A test application is use to confirm the existence (or lack there of) of a bug or to test a new feature implementation. Once the bug fix or feature is complete, it is a good idea to attach the test application to the issue.

Example empty test application template

<?xml version="1.0" encoding="utf-8"?>
<!---
   Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               creationComplete="onCreationComplete();" > 

    <fx:Script>
        <![CDATA[

        protected function onCreationComplete():void
        {
            //Any setup here.
        }


        ]]>
    </fx:Script>

    <s:layout>
        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" gap="0" />
    </s:layout>


    <!-- Components -->

</s:Application>
  • No labels