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...> - 2007-02-10 06:46:12
|
Revision: 158 http://svn.sourceforge.net/asunit/?rev=158&view=rev Author: lukebayes Date: 2007-02-09 22:46:13 -0800 (Fri, 09 Feb 2007) Log Message: ----------- removed unused build and manifest files Removed Paths: ------------- trunk/framework/as3/build.sh trunk/framework/as3/manifest.xml Deleted: trunk/framework/as3/build.sh =================================================================== --- trunk/framework/as3/build.sh 2007-01-29 23:09:39 UTC (rev 157) +++ trunk/framework/as3/build.sh 2007-02-10 06:46:13 UTC (rev 158) @@ -1,8 +0,0 @@ -#! /bin/bash - -rm -rf bin -mkdir bin - -# First Compile the SWC File... - -mxmlc -library-path 'bin/AsUnit.swc' -source-path '../../framework-test/as3' -debug -output 'bin/AsUnitTestRunner.swf' AsUnitTestRunner.as Deleted: trunk/framework/as3/manifest.xml =================================================================== --- trunk/framework/as3/manifest.xml 2007-01-29 23:09:39 UTC (rev 157) +++ trunk/framework/as3/manifest.xml 2007-02-10 06:46:13 UTC (rev 158) @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<componentPackage> - <component id="Assert" class="asunit.framework.Assert" /> - <component id="AsynchronousTestCase" class="asunit.framework.AsynchronousTestCase" /> - <component id="AsynchronousTestCaseExample" class="asunit.framework.AsynchronousTestCaseExample" /> - <component id="Test" class="asunit.framework.Test" /> - <component id="TestCase" class="asunit.framework.TestCase" /> - <component id="TestCaseExample" class="asunit.framework.TestCaseExample" /> - <component id="TestFailure" class="asunit.framework.TestFailure" /> - <component id="TestListener" class="asunit.framework.TestListener" /> - <component id="TestResult" class="asunit.framework.TestResult" /> - <component id="TestSuite" class="asunit.framework.TestSuite" /> - - <component id="BaseTestRunner" class="asunit.runner.BaseTestRunner" /> - <component id="TestSuiteLoader" class="asunit.runner.TestSuiteLoader" /> - <component id="Version" class="asunit.runner.Version" /> - <component id="FlexRunner" class="asunit.textui.FlexRunner" /> - <component id="FlexTestRunner" class="asunit.textui.FlexTestRunner" /> - <component id="ResultPrinter" class="asunit.textui.ResultPrinter" /> - <component id="TestRunner" class="asunit.textui.TestRunner" /> - <component id="ArrayIterator" class="asunit.util.ArrayIterator" /> - <component id="Iterator" class="asunit.util.Iterator" /> - <component id="Properties" class="asunit.util.Properties" /> - <component id="LayoutManager" class="mx.managers.LayoutManager" /> - - <component id="AbstractMemberCalledError" class="asunit.errors.AbstractMemberCalledError" /> - <component id="AssertionFailedError" class="asunit.errors.AssertionFailedError" /> - <component id="ClassNotFoundError" class="asunit.errors.ClassNotFoundError" /> - <component id="InstanceNotFoundError" class="asunit.errors.InstanceNotFoundError" /> - <component id="UnimplementedFeatureError" class="asunit.errors.UnimplementedFeatureError" /> -</componentPackage> \ 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-01-29 23:09:38
|
Revision: 157 http://svn.sourceforge.net/asunit/?rev=157&view=rev Author: lukebayes Date: 2007-01-29 15:09:39 -0800 (Mon, 29 Jan 2007) Log Message: ----------- added more informative exception for removeChild when tearDown attempts to removeChild with a null child reference 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-01-27 04:02:59 UTC (rev 156) +++ trunk/framework/as3/asunit/framework/TestCase.as 2007-01-29 23:09:39 UTC (rev 157) @@ -338,6 +338,9 @@ } protected function removeChild(child:DisplayObject):DisplayObject { + if(child == null) { + throw new IllegalOperationError("TestCase.removeChild must have non-null parameter child"); + } return getContext().removeChild(child); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-27 04:03:00
|
Revision: 156 http://svn.sourceforge.net/asunit/?rev=156&view=rev Author: lukebayes Date: 2007-01-26 20:02:59 -0800 (Fri, 26 Jan 2007) Log Message: ----------- Removed bad layoutmanager Removed Paths: ------------- trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as Deleted: trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as =================================================================== --- trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as 2007-01-27 03:18:25 UTC (rev 155) +++ trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as 2007-01-27 04:02:59 UTC (rev 156) @@ -1,964 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors. -// All Rights Reserved. The following is Source Code and is subject to all -// restrictions on such code as contained in the End User License Agreement -// accompanying this product. -// -//////////////////////////////////////////////////////////////////////////////// - -package mx.managers -{ - -import flash.display.Stage; -import flash.events.Event; -import flash.events.EventDispatcher; -import mx.core.Application; -import mx.core.UIComponent; -import mx.core.mx_internal; -import mx.events.FlexEvent; -import mx.managers.layoutClasses.PriorityQueue; - -use namespace mx_internal; - -/** - * The LayoutManager is the engine behind - * Flex's measurement and layout strategy. - * Layout is performed in three phases; commit, measurement, and layout. - * - * <p>Each phase is distinct from the others and all UIComponents of - * one phase are processed prior to moving on to the next phase. - * During the processing of UIComponents in a phase, requests for - * UIComponents to get re-processed by some phase may occur. - * These requests are queued and are only processed - * during the next run of the phase.</p> - * - * <p>The <b>commit</b> phase begins with a call to - * <code>validateProperties()</code>, which walks through a list - * (sorted by nesting level) of objects calling each object's - * <a href="../core/UIComponent.html#validateProperties()"> - * <code>validateProperties()</code></a>method.</p> - * - * <p>The objects in the list are processed by nesting order, - * with the <b>most</b> deeply nested object accessed first. - * This can also be referred to as bottom-up inside-out ordering.</p> - * - * <p>This phase allows components whose contents depend on property - * settings to configure themselves prior to the measurement - * and the layout phases. - * For the sake of performance, sometimes a component's property setter - * method does not do all the work to update to the new property value. - * Instead, the property setter calls the <code>invalidateProperties()</code> - * method, deferring the work until this phase runs. - * This prevents unnecessary work if the property is set multiple times.</p> - * - * <p>The <b>measurement</b> phase begins with a call to - * <code>validateSize()</code>, which walks through a list - * (sorted by nesting level) of objects calling each object's - * <a href="../core/UIComponent.html#validateSize()"><code>validateSize()</code></a> - * method to determine if the object has changed in size.</p> - * - * <p>If an object's <a href="../core/UIComponent.html#invalidateSize()"> - * <code>invalidateSize()</code></a> method was previously called, - * then the <code>validateSize()</code> method is called. - * If the size or position of the object was changed as a result of the - * <code>validateSize()</code> call, then the object's - * <a href="../core/UIComponent.html#invalidateDisplayList()"> - * <code>invalidateDisplayList()</code></a> method is called, thus adding - * the object to the processing queue for the next run of the layout phase. - * Additionally, the object's parent is marked for both measurement - * and layout phases, by calling - * <a href="../core/UIComponent.html#invalidateSize()"> - * <code>invalidateSize()</code></a> and - * <a href="../core/UIComponent.html#invalidateDisplayList()"> - * <code>invalidateDisplayList()</code></a> respectively.</p> - * - * <p>The objects in the list are processed by nesting order, - * with the <b>most</b> deeply nested object accessed first. - * This can also be referred to as bottom-up inside-out ordering.</p> - * - * <p>The <b>layout</b> phase begins with a call to the - * <code>validateDisplayList()</code> method, which walks through a list - * (reverse sorted by nesting level) of objects calling each object's - * <a href="../core/UIComponent.html#validateDisplayList()"> - * <code>validateDisplayList()</code></a> method to request the object to size - * and position all components contained within it (i.e. its children).</p> - * - * <p>If an object's <a href="../core/UIComponent.html#invalidateDisplayList()"> - * <code>invalidateDisplayList()</code></a> method was previously called, - * then <code>validateDisplayList()</code> method for the object is called.</p> - * - * <p>The objects in the list are processed in reversed nesting order, - * with the <b>least</b> deeply nested object accessed first. - * This can also be referred to as top-down or outside-in ordering.</p> - * - * <p>In general, components do not override the <code>validateProperties()</code>, - * <code>validateSize()</code>, or <code>validateDisplayList()</code> methods. - * In the case of UIComponents, most components override the - * <code>commitProperties()</code>, <code>measure()</code>, or - * <code>updateDisplayList()</code> methods, which are called - * by the <code>validateProperties()</code>, - * <code>validateSize()</code>, or - * <code>validateDisplayList()</code> methods, respectively.</p> - * - * <p>At application startup, a single instance of the LayoutManager is created - * and stored in the <code>UIComponent.layoutManager</code> property. - * All components are expected to use that instance. - * If you do not have access to the UIComponent object, - * you can also access the LayoutManager using the static - * <code>LayoutManager.getInstance()</code> method.</p> - */ -public class LayoutManager extends EventDispatcher -{ - include "../core/Version.as"; - - //-------------------------------------------------------------------------- - // - // Class variables - // - //-------------------------------------------------------------------------- - - /** - * @private - * The sole instance of this singleton class. - */ - private static var instance:LayoutManager; - - //-------------------------------------------------------------------------- - // - // Class methods - // - //-------------------------------------------------------------------------- - - /** - * Returns the sole instance of this singleton class, - * creating it if it does not already exist. - */ - public static function getInstance():LayoutManager - { - if (!instance) - instance = new LayoutManager(); - - return instance; - } - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - /** - * Constructor. - */ - public function LayoutManager() - { - super(); - } - - //-------------------------------------------------------------------------- - // - // Variables - // - //-------------------------------------------------------------------------- - - /** - * @private - * A queue of objects that need to dispatch updateComplete events - * when invalidation processing is complete - */ - private var updateCompleteQueue:PriorityQueue = new PriorityQueue(); - - /** - * @private - * A queue of objects to be processed during the first phase - * of invalidation processing, when an ILayoutManagerClient has - * its validateProperties() method called (which in a UIComponent - * calls commitProperties()). - * Objects are added to this queue by invalidateProperties() - * and removed by validateProperties(). - */ - private var invalidatePropertiesQueue:PriorityQueue = new PriorityQueue(); - - /** - * @private - * A flag indicating whether there are objects - * in the invalidatePropertiesQueue. - * It is set true by invalidateProperties() - * and set false by validateProperties(). - */ - private var invalidatePropertiesFlag:Boolean = false; - - // flag when in validateClient to check the properties queue again - private var invalidateClientPropertiesFlag:Boolean = false; - - /** - * @private - * A queue of objects to be processed during the second phase - * of invalidation processing, when an ILayoutManagerClient has - * its validateSize() method called (which in a UIComponent - * calls measure()). - * Objects are added to this queue by invalidateSize(). - * and removed by validateSize(). - */ - private var invalidateSizeQueue:PriorityQueue = new PriorityQueue(); - - /** - * @private - * A flag indicating whether there are objects - * in the invalidateSizeQueue. - * It is set true by invalidateSize() - * and set false by validateSize(). - */ - private var invalidateSizeFlag:Boolean = false; - - // flag when in validateClient to check the size queue again - private var invalidateClientSizeFlag:Boolean = false; - - /** - * @private - * A queue of objects to be processed during the third phase - * of invalidation processing, when an ILayoutManagerClient has - * its validateDisplayList() method called (which in a - * UIComponent calls updateDisplayList()). - * Objects are added to this queue by invalidateDisplayList() - * and removed by validateDisplayList(). - */ - private var invalidateDisplayListQueue:PriorityQueue = new PriorityQueue(); - - /** - * @private - * A flag indicating whether there are objects - * in the invalidateDisplayListQueue. - * It is set true by invalidateDisplayList() - * and set false by validateDisplayList(). - */ - private var invalidateDisplayListFlag:Boolean = false; - - /** - * @private - */ - private var callLaterObject:UIComponent; - - /** - * @private - */ - private var callLaterPending:Boolean = false; - - /** - * @private - */ - private var originalFrameRate:Number; - - /** - * @private - * used in validateClient to quickly estimate whether we have to - * search the queues again - */ - private var targetLevel:int = int.MAX_VALUE; - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // usePhasedInstantiation - //---------------------------------- - - /** - * @private - * Storage for the usePhasedInstantiation property. - */ - private var _usePhasedInstantiation:Boolean = false; - - /** - * A flag that indicates whether the LayoutManager allows screen updates - * between phases. - * If <code>true</code>, measurement and layout are done in phases, one phase - * per screen update. - * All components have their <code>validateProperties()</code> - * and <code>commitProperties()</code> methods - * called until all their properties are validated. - * The screen will then be updated. - * - * <p>Then all components will have their <code>validateSize()</code> - * and <code>measure()</code> - * methods called until all components have been measured, then the screen - * will be updated again. </p> - * - * <p>Finally, all components will have their - * <code>validateDisplayList()</code> and - * <code>updateDisplayList()</code> methods called until all components - * have been validated, and the screen will be updated again. - * If in the validation of one phase, an earlier phase gets invalidated, - * the LayoutManager starts over. - * This is more efficient when large numbers of components - * are being created an initialized. The framework is responsible for setting - * this property.</p> - * - * <p>If <code>false</code>, all three phases are completed before the screen is updated.</p> - */ - public function get usePhasedInstantiation():Boolean - { - return _usePhasedInstantiation; - } - - /** - * @private - */ - public function set usePhasedInstantiation(value:Boolean):void - { - if (_usePhasedInstantiation != value) - { - _usePhasedInstantiation = value; - - // While we're doing phased instantiation, temporarily increase - // the frame rate. That will cause the enterFrame and render - // events to fire more promptly, which improves performance. - var stage:Stage = SystemManager.topLevelSystemManagers[0].stage; - if (value) - { - originalFrameRate = stage.frameRate; - stage.frameRate = 1000; - } - else - { - stage.frameRate = originalFrameRate; - } - } - } - - //-------------------------------------------------------------------------- - // - // Methods: Invalidation - // - //-------------------------------------------------------------------------- - - /** - * Adds an object to the list of components that want their - * <code>validateProperties()</code> method called. - * A component should call this method when a property changes. - * Typically, a property setter method - * stores a the new value in a temporary variable and calls - * the <code>invalidateProperties()</code> method - * so that its <code>validateProperties()</code> - * and <code>commitProperties()</code> methods are called - * later, when the new value will actually be applied to the component and/or - * its children. The advantage of this strategy is that often, more than one - * property is changed at a time and the properties may interact with each - * other, or repeat some code as they are applied, or need to be applied in - * a specific order. This strategy allows the most efficient method of - * applying new property values. - * - * @param obj The object whose property changed. - */ - public function invalidateProperties(obj:ILayoutManagerClient ):void - { - if (!invalidatePropertiesFlag && Application.application.systemManager) - { - invalidatePropertiesFlag = true; - - if (!callLaterPending) - { - if (!callLaterObject) - { - callLaterObject = new UIComponent(); - callLaterObject.systemManager = - Application.application.systemManager; - callLaterObject.callLater(waitAFrame); - } - else - { - callLaterObject.callLater(doPhasedInstantiation); - } - - callLaterPending = true; - } - } - - // trace("LayoutManager adding " + Object(obj) + " to invalidatePropertiesQueue"); - - if (targetLevel <= obj.nestLevel) - invalidateClientPropertiesFlag = true; - - invalidatePropertiesQueue.addObject(obj, obj.nestLevel); - - // trace("LayoutManager added " + Object(obj) + " to invalidatePropertiesQueue"); - } - - /** - * Adds an object to the list of components that want their - * <code>validateSize()</code> method called. - * Called when an object's size changes. - * - * <p>An object's size can change for two reasons:</p> - * - * <ol> - * <li>The content of the object changes. For example, the size of a - * button changes when its <code>label</code> is changed.</li> - * <li>A script explicitly changes one of the following properties: - * <code>minWidth</code>, <code>minHeight</code>, - * <code>explicitWidth</code>, <code>explicitHeight</code>, - * <code>maxWidth</code>, or <code>maxHeight</code>.</li> - * </ol> - * - * <p>When the first condition occurs, it's necessary to recalculate - * the measurements for the object. - * When the second occurs, it's not necessary to recalculate the - * measurements because the new size of the object is known. - * However, it's necessary to remeasure and relayout the object's - * parent.</p> - * - * @param obj The object whose size changed. - */ - public function invalidateSize(obj:ILayoutManagerClient ):void - { - if (!invalidateSizeFlag && Application.application.systemManager) - { - invalidateSizeFlag = true; - - if (!callLaterPending) - { - if (!callLaterObject) - { - callLaterObject = new UIComponent(); - callLaterObject.systemManager = - Application.application.systemManager; - callLaterObject.callLater(waitAFrame); - } - else - { - callLaterObject.callLater(doPhasedInstantiation); - } - - callLaterPending = true; - } - } - - // trace("LayoutManager adding " + Object(obj) + " to invalidateSizeQueue"); - - if (targetLevel <= obj.nestLevel) - invalidateClientSizeFlag = true; - - invalidateSizeQueue.addObject(obj, obj.nestLevel); - - // trace("LayoutManager added " + Object(obj) + " to invalidateSizeQueue"); - } - - /** - * Called when a component changes in some way that its layout and/or visuals - * need to be changed. - * In that case, it is necessary to run the component's layout algorithm, - * even if the component's size hasn't changed. For example, when a new child component - * is added, or a style property changes or the component has been given - * a new size by its parent. - * - * @param obj The object that changed. - */ - public function invalidateDisplayList(obj:ILayoutManagerClient ):void - { - if (!invalidateDisplayListFlag && Application.application.systemManager) - { - invalidateDisplayListFlag = true; - - if (!callLaterPending) - { - if (!callLaterObject) - { - callLaterObject = new UIComponent(); - callLaterObject.systemManager = - Application.application.systemManager; - callLaterObject.callLater(waitAFrame); - } - else - { - callLaterObject.callLater(doPhasedInstantiation); - } - - callLaterPending = true; - } - } - - // trace("LayoutManager adding " + Object(obj) + " to invalidateDisplayListQueue"); - - invalidateDisplayListQueue.addObject(obj, obj.nestLevel); - - // trace("LayoutManager added " + Object(obj) + " to invalidateDisplayListQueue"); - } - - //-------------------------------------------------------------------------- - // - // Methods: Commitment, measurement, layout, and drawing - // - //-------------------------------------------------------------------------- - - /** - * Validates all components whose properties have changed and have called - * the <code>invalidateProperties()</code> method. - * It calls the <code>validateProperties()</code> method on those components - * and will call <code>validateProperties()</code> on any other components that are - * invalidated while validating other components. - */ - private function validateProperties():void - { - // trace("--- LayoutManager: validateProperties --->"); - - // Keep traversing the invalidatePropertiesQueue until we've reached the end. - // More elements may get added to the queue while we're in this loop, or a - // a recursive call to this function may remove elements from the queue while - // we're in this loop. - var obj:ILayoutManagerClient = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); - while (obj) - { - // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - obj.validateProperties(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - // Once we start, don't stop. - obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); - } - - if (invalidatePropertiesQueue.isEmpty()) - { - // trace("Properties Queue is empty"); - - invalidatePropertiesFlag = false; - } - - // trace("<--- LayoutManager: validateProperties ---"); - } - - /** - * Validates all components whose properties have changed and have called - * the <code>invalidateSize()</code> method. - * It calls the <code>validateSize()</code> method on those components - * and will call the <code>validateSize()</code> method - * on any other components that are - * invalidated while validating other components. - * The </code>validateSize()</code> method starts with - * the most deeply nested child in the tree of display objects - */ - private function validateSize():void - { - // trace("--- LayoutManager: validateSize --->"); - - var obj:ILayoutManagerClient = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); - while (obj) - { - // trace("LayoutManager calling validateSize() on " + Object(obj)); - - obj.validateSize(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight); - - obj = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); - } - - if (invalidateSizeQueue.isEmpty()) - { - // trace("Measurement Queue is empty"); - - invalidateSizeFlag = false; - } - - // trace("<--- LayoutManager: validateSize ---"); - } - - /** - * Validates all components whose properties have changed and have called - * the <code>invalidateDisplayList()</code> method. - * It calls <code>validateDisplayList()</code> method on those components - * and will call the <code>validateDisplayList()</code> method - * on any other components that are - * invalidated while validating other components. - * The <code>validateDisplayList()</code> method starts with - * the least deeply nested child in the tree of display objects - * - */ - private function validateDisplayList():void - { - - // trace("--- LayoutManager: validateDisplayList --->"); - - var obj:ILayoutManagerClient = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); - while (obj) - { - // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - obj.validateDisplayList(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - // Once we start, don't stop. - obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); - } - - - if (invalidateDisplayListQueue.isEmpty()) - { - // trace("Layout Queue is empty"); - - invalidateDisplayListFlag = false; - } - - // trace("<--- LayoutManager: validateDisplayList ---"); - } - - /** - * @private - */ - private function doPhasedInstantiation():void - { - // trace(">>DoPhasedInstantation"); - - // If phasing, do only one phase: validateProperties(), - // validateSize(), or validateDisplayList(). - if (usePhasedInstantiation) - { - if (invalidatePropertiesFlag) - { - validateProperties(); - - // The Preloader listens for this event. - Application.application.dispatchEvent( - new Event("validatePropertiesComplete")); - } - - else if (invalidateSizeFlag) - { - validateSize(); - - // The Preloader listens for this event. - Application.application.dispatchEvent( - new Event("validateSizeComplete")); - } - - else if (invalidateDisplayListFlag) - { - validateDisplayList(); - - // The Preloader listens for this event. - Application.application.dispatchEvent( - new Event("validateDisplayListComplete")); - } - } - - // Otherwise, do one pass of all three phases. - else - { - if (invalidatePropertiesFlag) - validateProperties(); - - if (invalidateSizeFlag) - validateSize(); - - if (invalidateDisplayListFlag) - validateDisplayList(); - } - - //// trace("invalidatePropertiesFlag " + invalidatePropertiesFlag); - //// trace("invalidateSizeFlag " + invalidateSizeFlag); - //// trace("invalidateDisplayListFlag " + invalidateDisplayListFlag); - - if (invalidatePropertiesFlag || - invalidateSizeFlag || - invalidateDisplayListFlag) - { - callLaterObject.callLater(doPhasedInstantiation); - } - else - { - usePhasedInstantiation = false; - - callLaterPending = false; - - var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest()); - while (obj) - { - if (!obj.initialized && obj.processedDescriptors) - obj.initialized = true; - obj.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); - obj.updateCompletePendingFlag = false; - obj = ILayoutManagerClient(updateCompleteQueue.removeLargest()); - } - - // trace("updateComplete"); - - dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); - } - - // trace("<<DoPhasedInstantation"); - } - - /** - * When properties are changed, components generally do not apply those changes immediately. - * Instead the components usually call one of the LayoutManager's invalidate methods and - * apply the properties at a later time. The actual property you set can be read back - * immediately, but if the property affects other properties in the component or its - * children or parents, those other properties may not be immediately updated. To - * guarantee that the values are updated, you can call the <code>validateNow()</code> method. - * It updates all properties in all components before returning. - * Call this method only when necessary as it is a computationally intensive call. - */ - public function validateNow():void - { - if (!usePhasedInstantiation) - { - var infiniteLoopGuard:int = 0; - while (callLaterPending && infiniteLoopGuard++ < 100) - doPhasedInstantiation(); - } - } - - /** - * When properties are changed, components generally do not apply those changes immediately. - * Instead the components usually call one of the LayoutManager's invalidate methods and - * apply the properties at a later time. The actual property you set can be read back - * immediately, but if the property affects other properties in the component or its - * children or parents, those other properties may not be immediately updated. - * - * <p>To guarantee that the values are updated, - * you can call the <code>validateClient()</code> method. - * It updates all properties in all components whose nest level is greater than or equal - * to the target component before returning. - * Call this method only when necessary as it is a computationally intensive call.</p> - * - * @param target The component passed in is used to test which components - * should be validated. All components contained by this component will have their - * <code>validateProperties()</code>, <code>commitProperties()</code>, - * <code>validateSize()</code>, <code>measure()</code>, - * <code>validateDisplayList()</code>, - * and <code>updateDisplayList()</code> methods called. - * - * @param skipDisplayList If <code>true</code>, - * does not call the <code>validateDisplayList()</code> - * and <code>updateDisplayList()</code> methods. - */ - public function validateClient(target:ILayoutManagerClient , skipDisplayList:Boolean = false):void - { - var obj:ILayoutManagerClient; - var i:int = 0; - var done:Boolean = false; - var oldTargetLevel:int = targetLevel; - - // the theory here is that most things that get validated are deep in the tree - // and so there won't be nested calls to validateClient. However if there is, - // we don't want to have a more sophisticated scheme of keeping track - // of dirty flags at each level that is being validated, but we definitely - // do not want to keep scanning the queues unless we're pretty sure that - // something might be dirty so we just say that if something got dirty - // during this call at a deeper nesting than the first call to validateClient - // then we'll scan the queues. So we only change targetLevel if we're the - // outer call to validateClient and only that call restores it. - if (targetLevel == int.MAX_VALUE) - targetLevel = target.nestLevel; - - // trace("--- LayoutManager: validateClient ---> target = " + target); - - while (!done) - { - // assume we won't find anything - done = true; - - // Keep traversing the invalidatePropertiesQueue until we've reached the end. - // More elements may get added to the queue while we're in this loop, or a - // a recursive call to this function may remove elements from the queue while - // we're in this loop. - obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); - while (obj) - { - // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - obj.validateProperties(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - // Once we start, don't stop. - obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); - } - - if (invalidatePropertiesQueue.isEmpty()) - { - // trace("Properties Queue is empty"); - - invalidatePropertiesFlag = false; - invalidateClientPropertiesFlag = false; - } - - // trace("--- LayoutManager: validateSize --->"); - - obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); - while (obj) - { - // trace("LayoutManager calling validateSize() on " + Object(obj)); - - obj.validateSize(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - - // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight); - - if (invalidateClientPropertiesFlag) - { - // did any properties get invalidated while validating size? - obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); - if (obj) - { - // re-queue it. we'll pull it at the beginning of the loop - invalidatePropertiesQueue.addObject(obj, obj.nestLevel); - done = false; - break; - } - } - - obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); - } - - if (invalidateSizeQueue.isEmpty()) - { - // trace("Measurement Queue is empty"); - - invalidateSizeFlag = false; - invalidateClientSizeFlag = false; - } - - if (!skipDisplayList) - { - // trace("--- LayoutManager: validateDisplayList --->"); - - obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(target)); - while (obj) - { - // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - obj.validateDisplayList(); - if (!obj.updateCompletePendingFlag) - { - updateCompleteQueue.addObject(obj, obj.nestLevel); - obj.updateCompletePendingFlag = true; - } - - // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); - - if (invalidateClientPropertiesFlag) - { - // did any properties get invalidated while validating size? - obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); - if (obj) - { - // re-queue it. we'll pull it at the beginning of the loop - invalidatePropertiesQueue.addObject(obj, obj.nestLevel); - done = false; - break; - } - } - - if (invalidateClientSizeFlag) - { - obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); - if (obj) - { - // re-queue it. we'll pull it at the beginning of the loop - invalidateSizeQueue.addObject(obj, obj.nestLevel); - done = false; - break; - } - } - - // Once we start, don't stop. - obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(target)); - } - - - if (invalidateDisplayListQueue.isEmpty()) - { - // trace("Layout Queue is empty"); - - invalidateDisplayListFlag = false; - } - } - } - - if (oldTargetLevel == int.MAX_VALUE) - { - targetLevel = int.MAX_VALUE; - if (!skipDisplayList) - { - obj = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(target)); - while (obj) - { - if (!obj.initialized) - obj.initialized = true; - obj.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); - obj.updateCompletePendingFlag = false; - obj = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(target)); - } - } - } - - // trace("<--- LayoutManager: validateClient --- target = " + target); - } - - /** - * Returns <code>true</code> if there are components that need validating; - * <code>false</code> if all components have been validated. - */ - public function isInvalid():Boolean - { - return invalidatePropertiesFlag || - invalidateSizeFlag || - invalidateDisplayListFlag; - } - - /** - * @private - * callLater() is called immediately after an object is created. - * We really want to wait one more frame before starting in. - */ - private function waitAFrame():void - { - //// trace(">>LayoutManager:WaitAFrame"); - - callLaterObject.callLater(doPhasedInstantiation); - - //// trace("<<LayoutManager:WaitAFrame"); - } - - // METHOD ADDED BY ASUNIT - // This method prevents the LayoutManager from - // validating entities for whom tearDown has already been called... - public function resetAll():void { - invalidatePropertiesQueue = new PriorityQueue(); - invalidateSizeQueue = new PriorityQueue(); - invalidateDisplayListQueue = new PriorityQueue(); - - invalidatePropertiesFlag = false; - invalidateClientSizeFlag = false; - invalidateDisplayListFlag = false; - } -} -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-27 03:18:25
|
Revision: 155 http://svn.sourceforge.net/asunit/?rev=155&view=rev Author: lukebayes Date: 2007-01-26 19:18:25 -0800 (Fri, 26 Jan 2007) Log Message: ----------- Added LayoutManager support for Flex Builder 2.0.1 Added Paths: ----------- trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as Added: trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as =================================================================== --- trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as (rev 0) +++ trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as 2007-01-27 03:18:25 UTC (rev 155) @@ -0,0 +1,964 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors. +// All Rights Reserved. The following is Source Code and is subject to all +// restrictions on such code as contained in the End User License Agreement +// accompanying this product. +// +//////////////////////////////////////////////////////////////////////////////// + +package mx.managers +{ + +import flash.display.Stage; +import flash.events.Event; +import flash.events.EventDispatcher; +import mx.core.Application; +import mx.core.UIComponent; +import mx.core.mx_internal; +import mx.events.FlexEvent; +import mx.managers.layoutClasses.PriorityQueue; + +use namespace mx_internal; + +/** + * The LayoutManager is the engine behind + * Flex's measurement and layout strategy. + * Layout is performed in three phases; commit, measurement, and layout. + * + * <p>Each phase is distinct from the others and all UIComponents of + * one phase are processed prior to moving on to the next phase. + * During the processing of UIComponents in a phase, requests for + * UIComponents to get re-processed by some phase may occur. + * These requests are queued and are only processed + * during the next run of the phase.</p> + * + * <p>The <b>commit</b> phase begins with a call to + * <code>validateProperties()</code>, which walks through a list + * (sorted by nesting level) of objects calling each object's + * <a href="../core/UIComponent.html#validateProperties()"> + * <code>validateProperties()</code></a>method.</p> + * + * <p>The objects in the list are processed by nesting order, + * with the <b>most</b> deeply nested object accessed first. + * This can also be referred to as bottom-up inside-out ordering.</p> + * + * <p>This phase allows components whose contents depend on property + * settings to configure themselves prior to the measurement + * and the layout phases. + * For the sake of performance, sometimes a component's property setter + * method does not do all the work to update to the new property value. + * Instead, the property setter calls the <code>invalidateProperties()</code> + * method, deferring the work until this phase runs. + * This prevents unnecessary work if the property is set multiple times.</p> + * + * <p>The <b>measurement</b> phase begins with a call to + * <code>validateSize()</code>, which walks through a list + * (sorted by nesting level) of objects calling each object's + * <a href="../core/UIComponent.html#validateSize()"><code>validateSize()</code></a> + * method to determine if the object has changed in size.</p> + * + * <p>If an object's <a href="../core/UIComponent.html#invalidateSize()"> + * <code>invalidateSize()</code></a> method was previously called, + * then the <code>validateSize()</code> method is called. + * If the size or position of the object was changed as a result of the + * <code>validateSize()</code> call, then the object's + * <a href="../core/UIComponent.html#invalidateDisplayList()"> + * <code>invalidateDisplayList()</code></a> method is called, thus adding + * the object to the processing queue for the next run of the layout phase. + * Additionally, the object's parent is marked for both measurement + * and layout phases, by calling + * <a href="../core/UIComponent.html#invalidateSize()"> + * <code>invalidateSize()</code></a> and + * <a href="../core/UIComponent.html#invalidateDisplayList()"> + * <code>invalidateDisplayList()</code></a> respectively.</p> + * + * <p>The objects in the list are processed by nesting order, + * with the <b>most</b> deeply nested object accessed first. + * This can also be referred to as bottom-up inside-out ordering.</p> + * + * <p>The <b>layout</b> phase begins with a call to the + * <code>validateDisplayList()</code> method, which walks through a list + * (reverse sorted by nesting level) of objects calling each object's + * <a href="../core/UIComponent.html#validateDisplayList()"> + * <code>validateDisplayList()</code></a> method to request the object to size + * and position all components contained within it (i.e. its children).</p> + * + * <p>If an object's <a href="../core/UIComponent.html#invalidateDisplayList()"> + * <code>invalidateDisplayList()</code></a> method was previously called, + * then <code>validateDisplayList()</code> method for the object is called.</p> + * + * <p>The objects in the list are processed in reversed nesting order, + * with the <b>least</b> deeply nested object accessed first. + * This can also be referred to as top-down or outside-in ordering.</p> + * + * <p>In general, components do not override the <code>validateProperties()</code>, + * <code>validateSize()</code>, or <code>validateDisplayList()</code> methods. + * In the case of UIComponents, most components override the + * <code>commitProperties()</code>, <code>measure()</code>, or + * <code>updateDisplayList()</code> methods, which are called + * by the <code>validateProperties()</code>, + * <code>validateSize()</code>, or + * <code>validateDisplayList()</code> methods, respectively.</p> + * + * <p>At application startup, a single instance of the LayoutManager is created + * and stored in the <code>UIComponent.layoutManager</code> property. + * All components are expected to use that instance. + * If you do not have access to the UIComponent object, + * you can also access the LayoutManager using the static + * <code>LayoutManager.getInstance()</code> method.</p> + */ +public class LayoutManager extends EventDispatcher +{ + include "../core/Version.as"; + + //-------------------------------------------------------------------------- + // + // Class variables + // + //-------------------------------------------------------------------------- + + /** + * @private + * The sole instance of this singleton class. + */ + private static var instance:LayoutManager; + + //-------------------------------------------------------------------------- + // + // Class methods + // + //-------------------------------------------------------------------------- + + /** + * Returns the sole instance of this singleton class, + * creating it if it does not already exist. + */ + public static function getInstance():LayoutManager + { + if (!instance) + instance = new LayoutManager(); + + return instance; + } + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + /** + * Constructor. + */ + public function LayoutManager() + { + super(); + } + + //-------------------------------------------------------------------------- + // + // Variables + // + //-------------------------------------------------------------------------- + + /** + * @private + * A queue of objects that need to dispatch updateComplete events + * when invalidation processing is complete + */ + private var updateCompleteQueue:PriorityQueue = new PriorityQueue(); + + /** + * @private + * A queue of objects to be processed during the first phase + * of invalidation processing, when an ILayoutManagerClient has + * its validateProperties() method called (which in a UIComponent + * calls commitProperties()). + * Objects are added to this queue by invalidateProperties() + * and removed by validateProperties(). + */ + private var invalidatePropertiesQueue:PriorityQueue = new PriorityQueue(); + + /** + * @private + * A flag indicating whether there are objects + * in the invalidatePropertiesQueue. + * It is set true by invalidateProperties() + * and set false by validateProperties(). + */ + private var invalidatePropertiesFlag:Boolean = false; + + // flag when in validateClient to check the properties queue again + private var invalidateClientPropertiesFlag:Boolean = false; + + /** + * @private + * A queue of objects to be processed during the second phase + * of invalidation processing, when an ILayoutManagerClient has + * its validateSize() method called (which in a UIComponent + * calls measure()). + * Objects are added to this queue by invalidateSize(). + * and removed by validateSize(). + */ + private var invalidateSizeQueue:PriorityQueue = new PriorityQueue(); + + /** + * @private + * A flag indicating whether there are objects + * in the invalidateSizeQueue. + * It is set true by invalidateSize() + * and set false by validateSize(). + */ + private var invalidateSizeFlag:Boolean = false; + + // flag when in validateClient to check the size queue again + private var invalidateClientSizeFlag:Boolean = false; + + /** + * @private + * A queue of objects to be processed during the third phase + * of invalidation processing, when an ILayoutManagerClient has + * its validateDisplayList() method called (which in a + * UIComponent calls updateDisplayList()). + * Objects are added to this queue by invalidateDisplayList() + * and removed by validateDisplayList(). + */ + private var invalidateDisplayListQueue:PriorityQueue = new PriorityQueue(); + + /** + * @private + * A flag indicating whether there are objects + * in the invalidateDisplayListQueue. + * It is set true by invalidateDisplayList() + * and set false by validateDisplayList(). + */ + private var invalidateDisplayListFlag:Boolean = false; + + /** + * @private + */ + private var callLaterObject:UIComponent; + + /** + * @private + */ + private var callLaterPending:Boolean = false; + + /** + * @private + */ + private var originalFrameRate:Number; + + /** + * @private + * used in validateClient to quickly estimate whether we have to + * search the queues again + */ + private var targetLevel:int = int.MAX_VALUE; + + //-------------------------------------------------------------------------- + // + // Properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // usePhasedInstantiation + //---------------------------------- + + /** + * @private + * Storage for the usePhasedInstantiation property. + */ + private var _usePhasedInstantiation:Boolean = false; + + /** + * A flag that indicates whether the LayoutManager allows screen updates + * between phases. + * If <code>true</code>, measurement and layout are done in phases, one phase + * per screen update. + * All components have their <code>validateProperties()</code> + * and <code>commitProperties()</code> methods + * called until all their properties are validated. + * The screen will then be updated. + * + * <p>Then all components will have their <code>validateSize()</code> + * and <code>measure()</code> + * methods called until all components have been measured, then the screen + * will be updated again. </p> + * + * <p>Finally, all components will have their + * <code>validateDisplayList()</code> and + * <code>updateDisplayList()</code> methods called until all components + * have been validated, and the screen will be updated again. + * If in the validation of one phase, an earlier phase gets invalidated, + * the LayoutManager starts over. + * This is more efficient when large numbers of components + * are being created an initialized. The framework is responsible for setting + * this property.</p> + * + * <p>If <code>false</code>, all three phases are completed before the screen is updated.</p> + */ + public function get usePhasedInstantiation():Boolean + { + return _usePhasedInstantiation; + } + + /** + * @private + */ + public function set usePhasedInstantiation(value:Boolean):void + { + if (_usePhasedInstantiation != value) + { + _usePhasedInstantiation = value; + + // While we're doing phased instantiation, temporarily increase + // the frame rate. That will cause the enterFrame and render + // events to fire more promptly, which improves performance. + var stage:Stage = SystemManager.topLevelSystemManagers[0].stage; + if (value) + { + originalFrameRate = stage.frameRate; + stage.frameRate = 1000; + } + else + { + stage.frameRate = originalFrameRate; + } + } + } + + //-------------------------------------------------------------------------- + // + // Methods: Invalidation + // + //-------------------------------------------------------------------------- + + /** + * Adds an object to the list of components that want their + * <code>validateProperties()</code> method called. + * A component should call this method when a property changes. + * Typically, a property setter method + * stores a the new value in a temporary variable and calls + * the <code>invalidateProperties()</code> method + * so that its <code>validateProperties()</code> + * and <code>commitProperties()</code> methods are called + * later, when the new value will actually be applied to the component and/or + * its children. The advantage of this strategy is that often, more than one + * property is changed at a time and the properties may interact with each + * other, or repeat some code as they are applied, or need to be applied in + * a specific order. This strategy allows the most efficient method of + * applying new property values. + * + * @param obj The object whose property changed. + */ + public function invalidateProperties(obj:ILayoutManagerClient ):void + { + if (!invalidatePropertiesFlag && Application.application.systemManager) + { + invalidatePropertiesFlag = true; + + if (!callLaterPending) + { + if (!callLaterObject) + { + callLaterObject = new UIComponent(); + callLaterObject.systemManager = + Application.application.systemManager; + callLaterObject.callLater(waitAFrame); + } + else + { + callLaterObject.callLater(doPhasedInstantiation); + } + + callLaterPending = true; + } + } + + // trace("LayoutManager adding " + Object(obj) + " to invalidatePropertiesQueue"); + + if (targetLevel <= obj.nestLevel) + invalidateClientPropertiesFlag = true; + + invalidatePropertiesQueue.addObject(obj, obj.nestLevel); + + // trace("LayoutManager added " + Object(obj) + " to invalidatePropertiesQueue"); + } + + /** + * Adds an object to the list of components that want their + * <code>validateSize()</code> method called. + * Called when an object's size changes. + * + * <p>An object's size can change for two reasons:</p> + * + * <ol> + * <li>The content of the object changes. For example, the size of a + * button changes when its <code>label</code> is changed.</li> + * <li>A script explicitly changes one of the following properties: + * <code>minWidth</code>, <code>minHeight</code>, + * <code>explicitWidth</code>, <code>explicitHeight</code>, + * <code>maxWidth</code>, or <code>maxHeight</code>.</li> + * </ol> + * + * <p>When the first condition occurs, it's necessary to recalculate + * the measurements for the object. + * When the second occurs, it's not necessary to recalculate the + * measurements because the new size of the object is known. + * However, it's necessary to remeasure and relayout the object's + * parent.</p> + * + * @param obj The object whose size changed. + */ + public function invalidateSize(obj:ILayoutManagerClient ):void + { + if (!invalidateSizeFlag && Application.application.systemManager) + { + invalidateSizeFlag = true; + + if (!callLaterPending) + { + if (!callLaterObject) + { + callLaterObject = new UIComponent(); + callLaterObject.systemManager = + Application.application.systemManager; + callLaterObject.callLater(waitAFrame); + } + else + { + callLaterObject.callLater(doPhasedInstantiation); + } + + callLaterPending = true; + } + } + + // trace("LayoutManager adding " + Object(obj) + " to invalidateSizeQueue"); + + if (targetLevel <= obj.nestLevel) + invalidateClientSizeFlag = true; + + invalidateSizeQueue.addObject(obj, obj.nestLevel); + + // trace("LayoutManager added " + Object(obj) + " to invalidateSizeQueue"); + } + + /** + * Called when a component changes in some way that its layout and/or visuals + * need to be changed. + * In that case, it is necessary to run the component's layout algorithm, + * even if the component's size hasn't changed. For example, when a new child component + * is added, or a style property changes or the component has been given + * a new size by its parent. + * + * @param obj The object that changed. + */ + public function invalidateDisplayList(obj:ILayoutManagerClient ):void + { + if (!invalidateDisplayListFlag && Application.application.systemManager) + { + invalidateDisplayListFlag = true; + + if (!callLaterPending) + { + if (!callLaterObject) + { + callLaterObject = new UIComponent(); + callLaterObject.systemManager = + Application.application.systemManager; + callLaterObject.callLater(waitAFrame); + } + else + { + callLaterObject.callLater(doPhasedInstantiation); + } + + callLaterPending = true; + } + } + + // trace("LayoutManager adding " + Object(obj) + " to invalidateDisplayListQueue"); + + invalidateDisplayListQueue.addObject(obj, obj.nestLevel); + + // trace("LayoutManager added " + Object(obj) + " to invalidateDisplayListQueue"); + } + + //-------------------------------------------------------------------------- + // + // Methods: Commitment, measurement, layout, and drawing + // + //-------------------------------------------------------------------------- + + /** + * Validates all components whose properties have changed and have called + * the <code>invalidateProperties()</code> method. + * It calls the <code>validateProperties()</code> method on those components + * and will call <code>validateProperties()</code> on any other components that are + * invalidated while validating other components. + */ + private function validateProperties():void + { + // trace("--- LayoutManager: validateProperties --->"); + + // Keep traversing the invalidatePropertiesQueue until we've reached the end. + // More elements may get added to the queue while we're in this loop, or a + // a recursive call to this function may remove elements from the queue while + // we're in this loop. + var obj:ILayoutManagerClient = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); + while (obj) + { + // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + obj.validateProperties(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + // Once we start, don't stop. + obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); + } + + if (invalidatePropertiesQueue.isEmpty()) + { + // trace("Properties Queue is empty"); + + invalidatePropertiesFlag = false; + } + + // trace("<--- LayoutManager: validateProperties ---"); + } + + /** + * Validates all components whose properties have changed and have called + * the <code>invalidateSize()</code> method. + * It calls the <code>validateSize()</code> method on those components + * and will call the <code>validateSize()</code> method + * on any other components that are + * invalidated while validating other components. + * The </code>validateSize()</code> method starts with + * the most deeply nested child in the tree of display objects + */ + private function validateSize():void + { + // trace("--- LayoutManager: validateSize --->"); + + var obj:ILayoutManagerClient = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); + while (obj) + { + // trace("LayoutManager calling validateSize() on " + Object(obj)); + + obj.validateSize(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight); + + obj = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); + } + + if (invalidateSizeQueue.isEmpty()) + { + // trace("Measurement Queue is empty"); + + invalidateSizeFlag = false; + } + + // trace("<--- LayoutManager: validateSize ---"); + } + + /** + * Validates all components whose properties have changed and have called + * the <code>invalidateDisplayList()</code> method. + * It calls <code>validateDisplayList()</code> method on those components + * and will call the <code>validateDisplayList()</code> method + * on any other components that are + * invalidated while validating other components. + * The <code>validateDisplayList()</code> method starts with + * the least deeply nested child in the tree of display objects + * + */ + private function validateDisplayList():void + { + + // trace("--- LayoutManager: validateDisplayList --->"); + + var obj:ILayoutManagerClient = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); + while (obj) + { + // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + obj.validateDisplayList(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + // Once we start, don't stop. + obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); + } + + + if (invalidateDisplayListQueue.isEmpty()) + { + // trace("Layout Queue is empty"); + + invalidateDisplayListFlag = false; + } + + // trace("<--- LayoutManager: validateDisplayList ---"); + } + + /** + * @private + */ + private function doPhasedInstantiation():void + { + // trace(">>DoPhasedInstantation"); + + // If phasing, do only one phase: validateProperties(), + // validateSize(), or validateDisplayList(). + if (usePhasedInstantiation) + { + if (invalidatePropertiesFlag) + { + validateProperties(); + + // The Preloader listens for this event. + Application.application.dispatchEvent( + new Event("validatePropertiesComplete")); + } + + else if (invalidateSizeFlag) + { + validateSize(); + + // The Preloader listens for this event. + Application.application.dispatchEvent( + new Event("validateSizeComplete")); + } + + else if (invalidateDisplayListFlag) + { + validateDisplayList(); + + // The Preloader listens for this event. + Application.application.dispatchEvent( + new Event("validateDisplayListComplete")); + } + } + + // Otherwise, do one pass of all three phases. + else + { + if (invalidatePropertiesFlag) + validateProperties(); + + if (invalidateSizeFlag) + validateSize(); + + if (invalidateDisplayListFlag) + validateDisplayList(); + } + + //// trace("invalidatePropertiesFlag " + invalidatePropertiesFlag); + //// trace("invalidateSizeFlag " + invalidateSizeFlag); + //// trace("invalidateDisplayListFlag " + invalidateDisplayListFlag); + + if (invalidatePropertiesFlag || + invalidateSizeFlag || + invalidateDisplayListFlag) + { + callLaterObject.callLater(doPhasedInstantiation); + } + else + { + usePhasedInstantiation = false; + + callLaterPending = false; + + var obj:ILayoutManagerClient = ILayoutManagerClient(updateCompleteQueue.removeLargest()); + while (obj) + { + if (!obj.initialized && obj.processedDescriptors) + obj.initialized = true; + obj.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); + obj.updateCompletePendingFlag = false; + obj = ILayoutManagerClient(updateCompleteQueue.removeLargest()); + } + + // trace("updateComplete"); + + dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); + } + + // trace("<<DoPhasedInstantation"); + } + + /** + * When properties are changed, components generally do not apply those changes immediately. + * Instead the components usually call one of the LayoutManager's invalidate methods and + * apply the properties at a later time. The actual property you set can be read back + * immediately, but if the property affects other properties in the component or its + * children or parents, those other properties may not be immediately updated. To + * guarantee that the values are updated, you can call the <code>validateNow()</code> method. + * It updates all properties in all components before returning. + * Call this method only when necessary as it is a computationally intensive call. + */ + public function validateNow():void + { + if (!usePhasedInstantiation) + { + var infiniteLoopGuard:int = 0; + while (callLaterPending && infiniteLoopGuard++ < 100) + doPhasedInstantiation(); + } + } + + /** + * When properties are changed, components generally do not apply those changes immediately. + * Instead the components usually call one of the LayoutManager's invalidate methods and + * apply the properties at a later time. The actual property you set can be read back + * immediately, but if the property affects other properties in the component or its + * children or parents, those other properties may not be immediately updated. + * + * <p>To guarantee that the values are updated, + * you can call the <code>validateClient()</code> method. + * It updates all properties in all components whose nest level is greater than or equal + * to the target component before returning. + * Call this method only when necessary as it is a computationally intensive call.</p> + * + * @param target The component passed in is used to test which components + * should be validated. All components contained by this component will have their + * <code>validateProperties()</code>, <code>commitProperties()</code>, + * <code>validateSize()</code>, <code>measure()</code>, + * <code>validateDisplayList()</code>, + * and <code>updateDisplayList()</code> methods called. + * + * @param skipDisplayList If <code>true</code>, + * does not call the <code>validateDisplayList()</code> + * and <code>updateDisplayList()</code> methods. + */ + public function validateClient(target:ILayoutManagerClient , skipDisplayList:Boolean = false):void + { + var obj:ILayoutManagerClient; + var i:int = 0; + var done:Boolean = false; + var oldTargetLevel:int = targetLevel; + + // the theory here is that most things that get validated are deep in the tree + // and so there won't be nested calls to validateClient. However if there is, + // we don't want to have a more sophisticated scheme of keeping track + // of dirty flags at each level that is being validated, but we definitely + // do not want to keep scanning the queues unless we're pretty sure that + // something might be dirty so we just say that if something got dirty + // during this call at a deeper nesting than the first call to validateClient + // then we'll scan the queues. So we only change targetLevel if we're the + // outer call to validateClient and only that call restores it. + if (targetLevel == int.MAX_VALUE) + targetLevel = target.nestLevel; + + // trace("--- LayoutManager: validateClient ---> target = " + target); + + while (!done) + { + // assume we won't find anything + done = true; + + // Keep traversing the invalidatePropertiesQueue until we've reached the end. + // More elements may get added to the queue while we're in this loop, or a + // a recursive call to this function may remove elements from the queue while + // we're in this loop. + obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); + while (obj) + { + // trace("LayoutManager calling validateProperties() on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + obj.validateProperties(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + // Once we start, don't stop. + obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); + } + + if (invalidatePropertiesQueue.isEmpty()) + { + // trace("Properties Queue is empty"); + + invalidatePropertiesFlag = false; + invalidateClientPropertiesFlag = false; + } + + // trace("--- LayoutManager: validateSize --->"); + + obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); + while (obj) + { + // trace("LayoutManager calling validateSize() on " + Object(obj)); + + obj.validateSize(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + + // trace("LayoutManager validateSize: " + Object(obj) + " " + IFlexDisplayObject(obj).measuredWidth + " " + IFlexDisplayObject(obj).measuredHeight); + + if (invalidateClientPropertiesFlag) + { + // did any properties get invalidated while validating size? + obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); + if (obj) + { + // re-queue it. we'll pull it at the beginning of the loop + invalidatePropertiesQueue.addObject(obj, obj.nestLevel); + done = false; + break; + } + } + + obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); + } + + if (invalidateSizeQueue.isEmpty()) + { + // trace("Measurement Queue is empty"); + + invalidateSizeFlag = false; + invalidateClientSizeFlag = false; + } + + if (!skipDisplayList) + { + // trace("--- LayoutManager: validateDisplayList --->"); + + obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(target)); + while (obj) + { + // trace("LayoutManager calling validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + obj.validateDisplayList(); + if (!obj.updateCompletePendingFlag) + { + updateCompleteQueue.addObject(obj, obj.nestLevel); + obj.updateCompletePendingFlag = true; + } + + // trace("LayoutManager return from validateDisplayList on " + Object(obj) + " " + DisplayObject(obj).width + " " + DisplayObject(obj).height); + + if (invalidateClientPropertiesFlag) + { + // did any properties get invalidated while validating size? + obj = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(target)); + if (obj) + { + // re-queue it. we'll pull it at the beginning of the loop + invalidatePropertiesQueue.addObject(obj, obj.nestLevel); + done = false; + break; + } + } + + if (invalidateClientSizeFlag) + { + obj = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(target)); + if (obj) + { + // re-queue it. we'll pull it at the beginning of the loop + invalidateSizeQueue.addObject(obj, obj.nestLevel); + done = false; + break; + } + } + + // Once we start, don't stop. + obj = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(target)); + } + + + if (invalidateDisplayListQueue.isEmpty()) + { + // trace("Layout Queue is empty"); + + invalidateDisplayListFlag = false; + } + } + } + + if (oldTargetLevel == int.MAX_VALUE) + { + targetLevel = int.MAX_VALUE; + if (!skipDisplayList) + { + obj = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(target)); + while (obj) + { + if (!obj.initialized) + obj.initialized = true; + obj.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); + obj.updateCompletePendingFlag = false; + obj = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(target)); + } + } + } + + // trace("<--- LayoutManager: validateClient --- target = " + target); + } + + /** + * Returns <code>true</code> if there are components that need validating; + * <code>false</code> if all components have been validated. + */ + public function isInvalid():Boolean + { + return invalidatePropertiesFlag || + invalidateSizeFlag || + invalidateDisplayListFlag; + } + + /** + * @private + * callLater() is called immediately after an object is created. + * We really want to wait one more frame before starting in. + */ + private function waitAFrame():void + { + //// trace(">>LayoutManager:WaitAFrame"); + + callLaterObject.callLater(doPhasedInstantiation); + + //// trace("<<LayoutManager:WaitAFrame"); + } + + // METHOD ADDED BY ASUNIT + // This method prevents the LayoutManager from + // validating entities for whom tearDown has already been called... + public function resetAll():void { + invalidatePropertiesQueue = new PriorityQueue(); + invalidateSizeQueue = new PriorityQueue(); + invalidateDisplayListQueue = new PriorityQueue(); + + invalidatePropertiesFlag = false; + invalidateClientSizeFlag = false; + invalidateDisplayListFlag = false; + } +} +} Property changes on: trunk/framework/as3/mx/managers/LayoutManager-2.0.1.as ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-23 22:51:07
|
Revision: 154 http://svn.sourceforge.net/asunit/?rev=154&view=rev Author: lukebayes Date: 2007-01-23 14:51:07 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Moved the exclude declaration to work better Modified Paths: -------------- trunk/framework/as3/asunit/util/ArrayIterator.as Modified: trunk/framework/as3/asunit/util/ArrayIterator.as =================================================================== --- trunk/framework/as3/asunit/util/ArrayIterator.as 2007-01-23 22:01:09 UTC (rev 153) +++ trunk/framework/as3/asunit/util/ArrayIterator.as 2007-01-23 22:51:07 UTC (rev 154) @@ -1,8 +1,8 @@ package asunit.util { - [ExcludeClass] import asunit.util.Iterator; + [ExcludeClass] public class ArrayIterator implements Iterator { private var list:Array; private var index:Number = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-23 22:01:13
|
Revision: 153 http://svn.sourceforge.net/asunit/?rev=153&view=rev Author: lukebayes Date: 2007-01-23 14:01:09 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Added exclude class directives so they dont annoy flex development Modified Paths: -------------- trunk/framework/as3/asunit/util/ArrayIterator.as trunk/framework/as3/asunit/util/Iterator.as trunk/framework/as3/asunit/util/Properties.as Modified: trunk/framework/as3/asunit/util/ArrayIterator.as =================================================================== --- trunk/framework/as3/asunit/util/ArrayIterator.as 2007-01-09 01:59:22 UTC (rev 152) +++ trunk/framework/as3/asunit/util/ArrayIterator.as 2007-01-23 22:01:09 UTC (rev 153) @@ -1,4 +1,6 @@ package asunit.util { + + [ExcludeClass] import asunit.util.Iterator; public class ArrayIterator implements Iterator { @@ -8,15 +10,15 @@ public function ArrayIterator(list:Array) { this.list = list; } - + public function hasNext():Boolean { return list[index] != null; } - - public function next():Object { + + public function next():Object { return list[index++]; } - + public function reset():void { index = 0; } Modified: trunk/framework/as3/asunit/util/Iterator.as =================================================================== --- trunk/framework/as3/asunit/util/Iterator.as 2007-01-09 01:59:22 UTC (rev 152) +++ trunk/framework/as3/asunit/util/Iterator.as 2007-01-23 22:01:09 UTC (rev 153) @@ -1,5 +1,6 @@ package asunit.util { + [ExcludeClass] public interface Iterator { function next():Object; function hasNext():Boolean; Modified: trunk/framework/as3/asunit/util/Properties.as =================================================================== --- trunk/framework/as3/asunit/util/Properties.as 2007-01-09 01:59:22 UTC (rev 152) +++ trunk/framework/as3/asunit/util/Properties.as 2007-01-23 22:01:09 UTC (rev 153) @@ -1,21 +1,22 @@ package asunit.util { import asunit.errors.UnimplementedFeatureError; import flash.errors.IllegalOperationError; - + + [ExcludeClass] public dynamic class Properties { - + public function store(sharedObjectId:String):void { throw new UnimplementedFeatureError("Properties.store"); } - + public function put(key:String, value:Object):void { this[key] = value; } - + public function setProperty(key:String, value:Object):void { put(key, value); } - + public function getProperty(key:String):Object { try { return this[key]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-09 01:59:21
|
Revision: 152 http://svn.sourceforge.net/asunit/?rev=152&view=rev Author: lukebayes Date: 2007-01-08 17:59:22 -0800 (Mon, 08 Jan 2007) Log Message: ----------- Updated links to new releases Modified Paths: -------------- trunk/comm/www/html/index.html Modified: trunk/comm/www/html/index.html =================================================================== --- trunk/comm/www/html/index.html 2007-01-09 01:34:08 UTC (rev 151) +++ trunk/comm/www/html/index.html 2007-01-09 01:59:22 UTC (rev 152) @@ -123,7 +123,7 @@ <table id="badges"> <tr> <td class="badge"> - <a href="http://prdownloads.sourceforge.net/asunit/Framework.zip?download"> + <a href="http://sourceforge.net/project/showfiles.php?group_id=108947&package_id=208528"> <img id="frameworkDownload" class="badgeLabel" src="img/DownloadFrameworkText.gif" alt="Download the Framework" /><br /> <img class="badge" src="img/DownloadFramework.gif" /> @@ -132,7 +132,7 @@ </a> </td> <td class="badge"> - <a href="http://prdownloads.sourceforge.net/asunit/XULUI-Win.msi?download"> + <a href="http://sourceforge.net/project/showfiles.php?group_id=108947&package_id=168969"> <img class="badgeLabel" src="img/DownloadXULUIText.gif" alt="Download the XULUI" /><br /> <img class="badge" src="img/DownloadXULUI.gif" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2007-01-09 01:34:08
|
Revision: 151 http://svn.sourceforge.net/asunit/?rev=151&view=rev Author: alimills Date: 2007-01-08 17:34:08 -0800 (Mon, 08 Jan 2007) Log Message: ----------- latest and greatest - really! Modified Paths: -------------- trunk/installers/win/AsUnit-20070108.msi Modified: trunk/installers/win/AsUnit-20070108.msi =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2007-01-09 01:30:29
|
Revision: 150 http://svn.sourceforge.net/asunit/?rev=150&view=rev Author: alimills Date: 2007-01-08 17:30:29 -0800 (Mon, 08 Jan 2007) Log Message: ----------- latest and greatest Added Paths: ----------- trunk/installers/win/AsUnit-20070108.msi Added: trunk/installers/win/AsUnit-20070108.msi =================================================================== (Binary files differ) Property changes on: trunk/installers/win/AsUnit-20070108.msi ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2007-01-09 01:13:58
|
Revision: 149 http://svn.sourceforge.net/asunit/?rev=149&view=rev Author: alimills Date: 2007-01-08 17:13:58 -0800 (Mon, 08 Jan 2007) Log Message: ----------- removing because it's in the framework path Removed Paths: ------------- trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt Deleted: trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt =================================================================== --- trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt 2007-01-09 01:11:10 UTC (rev 148) +++ trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt 2007-01-09 01:13:58 UTC (rev 149) @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-09 01:11:09
|
Revision: 148 http://svn.sourceforge.net/asunit/?rev=148&view=rev Author: lukebayes Date: 2007-01-08 17:11:10 -0800 (Mon, 08 Jan 2007) Log Message: ----------- Rebuilt xpi Modified Paths: -------------- trunk/xului/bin/AsUnit.xpi Modified: trunk/xului/bin/AsUnit.xpi =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-09 01:10:55
|
Revision: 147 http://svn.sourceforge.net/asunit/?rev=147&view=rev Author: lukebayes Date: 2007-01-08 17:10:56 -0800 (Mon, 08 Jan 2007) Log Message: ----------- Rebuilt jar files Modified Paths: -------------- trunk/xului/src/chrome/AsUnit.jar trunk/xului/src/chrome/en-US.jar Modified: trunk/xului/src/chrome/AsUnit.jar =================================================================== (Binary files differ) Modified: trunk/xului/src/chrome/en-US.jar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2007-01-09 01:06:36
|
Revision: 146 http://svn.sourceforge.net/asunit/?rev=146&view=rev Author: lukebayes Date: 2007-01-08 17:06:36 -0800 (Mon, 08 Jan 2007) Log Message: ----------- Added License and Changelog to release Added Paths: ----------- trunk/framework/CHANGE-LOG.txt trunk/framework/LICENSE.txt Added: trunk/framework/CHANGE-LOG.txt =================================================================== --- trunk/framework/CHANGE-LOG.txt (rev 0) +++ trunk/framework/CHANGE-LOG.txt 2007-01-09 01:06:36 UTC (rev 146) @@ -0,0 +1,1107 @@ + +---------------------------- +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". =) + +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: + +I think the renderTests(arr:Array) function should be changed to +renderTests(Void), and then change: + lc["addTests"](arr); + tests = new Array(); +to read: + lc["addTests"](tests); + tests = new Array(); + +The reason is simply that this.tests gets reset so passing in anything +other than this.tests is dangerous. + +While there I think renderTests() and getLocalConn() can be changed from +public to private: no other classes seem to call them. + +addSuccess() and addFailure() don't seem to be called from anywhere at +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! +------------------------------------------------------------------------ Added: trunk/framework/LICENSE.txt =================================================================== --- trunk/framework/LICENSE.txt (rev 0) +++ trunk/framework/LICENSE.txt 2007-01-09 01:06:36 UTC (rev 146) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS... [truncated message content] |
From: <luk...@us...> - 2007-01-09 01:05:45
|
Revision: 145 http://svn.sourceforge.net/asunit/?rev=145&view=rev Author: lukebayes Date: 2007-01-08 17:05:46 -0800 (Mon, 08 Jan 2007) Log Message: ----------- Added GPL License to released files Added Paths: ----------- trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt Added: trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt =================================================================== --- trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt (rev 0) +++ trunk/xului/src/chrome/asunit/content/asunit/LICENSE.txt 2007-01-09 01:05:46 UTC (rev 145) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-12-22 21:06:22
|
Revision: 144 http://svn.sourceforge.net/asunit/?rev=144&view=rev Author: lukebayes Date: 2006-12-22 13:06:19 -0800 (Fri, 22 Dec 2006) Log Message: ----------- Updated index file Modified Paths: -------------- trunk/comm/www/html/index.html Modified: trunk/comm/www/html/index.html =================================================================== --- trunk/comm/www/html/index.html 2006-12-10 20:17:10 UTC (rev 143) +++ trunk/comm/www/html/index.html 2006-12-22 21:06:19 UTC (rev 144) @@ -11,6 +11,7 @@ <!-- Header --> <div id="header"> + <img src="img/AsUnitLogo.gif" alt="AsUnit Logo" /> <br /> @@ -31,6 +32,7 @@ <a href="#getStarted"> <img class="badgeLabel" src="img/GetStartedText.gif" alt="Get Started" /><br /> <img class="badge" src="img/GetStarted.gif" /> + </a> </td> @@ -40,6 +42,7 @@ <img class="badge" src="img/GetInvolved.gif" /> </a> </td> + <td class="badge"> <a href="#learnMore"> @@ -49,6 +52,7 @@ </td> </tr> </table> + </center> <!-- AsUnit Questions --> @@ -59,13 +63,15 @@ <table> <tr> <td class="question">What exactly is AsUnit?</td> + <td class="answer"><p>At it's most basic, AsUnit is simply some ActionScript classes that make it easier for you to build and execute automated tests for your applications. This simple, lightweight component is known as the <i>AsUnit <a href="#getStarted">framework</a></i>, and it currently supports ActionScript 2.0 and ActionScript 3.0 development.</p> <p>The AsUnit <i><a href="#getStarted">framework</a></i> is deployed along with a variety of additional tools that we believe make adding (and maintaining) features much simpler.</p> <p> These tools include: <ul> - <li><strong>XUL UI:</strong> This is a complete, <i>(soon-to-be cross-platform)</i> desktop application written entirely in <a href="http://xulplanet.com/">XUL</a> that simplifies the work involved in creating classes, <a href="http://en.wikipedia.org/wiki/Test_case">test cases</a>, <a href="http://en.wikipedia.org/wiki/Test_suite">test suites</a>, and <a href="http://en.wikipedia.org/wiki/Mock_object">mock objects</a>. The XUL UI includes everything found in the <a href="#getStarted">framework</a> package. <i>(Mac users beware - the installer provided will only work on windows. We are <strong>really</strong> hoping to get someone on a Mac to help us with the Mac deployment path - if you might be that someone, please <a href="http://lists.sourceforge.net/lists/listinfo/asunit-users">post to the list</a>.</i></li> + <li><strong>XUL UI:</strong> This is a complete, <i>(soon-to-be cross-platform)</i> desktop application written entirely in <a href="http://xulplanet.com/">XUL</a> that simplifies the work involved in creating classes, <a href="http://en.wikipedia.org/wiki/Test_case">test cases</a>, <a href="http://en.wikipedia.org/wiki/Test_suite">test suites</a>, and <a href="http://en.wikipedia.org/wiki/Mock_object">mock objects</a>. The XUL UI includes everything found in the <a href="#getStarted">framework</a> package.</li> + <li><strong>MXP:</strong> This is a self-extracting Macromedia extension that will install AsUnit directly into Flash MX 2004 and/or Flash 8 Authoring. This extension requres the <a href="http://www.macromedia.com/exchange/em_download/">Macromedia Extension Manager</a>.</li> <li><a href="files/releases/SwfUi-20060302.swf" alt="Right-Click and choose 'save target' to download the Ui"><strong>SWF UI:</strong></a> This is a simple SWF file that can be run from anywhere on your system <i>(including the desktop or the browser)</i> to present test results from an ActionScript 2.0 application that has implemented the ActionScript 2.0 AsUnit <a href="#getStarted">framework</a>. <i>(You can right-click and save this link to your desktop if you want to run the UI locally)</i></li> @@ -90,6 +96,7 @@ <li><strong>An ActionScript Compiler: </strong> <a href="http://mtasc.org/">MTASC</a>, <a href="http://labs.macromedia.com">MXMLC</a>, or the <a href="http://www.macromedia.com/software/flash/flashpro">Flash IDE</a> of your choosing (2004 or 8.0)</li> <li><strong>AsUnit Framework: </strong> If you are compiling with ActionScript 2.0, add the "as2" package to the class path of your compiler, If you are compiling ActionScript 3.0, add the "as3" package to the class path of your compiler. </li> + </p> </td> @@ -100,6 +107,7 @@ <!-- Get Started --> <div id="getStarted" class="success-bar"></div> + <div class="section"> <table> @@ -108,6 +116,7 @@ <td class="answer"><p>Please read each of the following items as you may want to download more than one depending on your system configuration and project needs.</p> </td> </tr> + </table> <center> @@ -117,6 +126,7 @@ <a href="http://prdownloads.sourceforge.net/asunit/Framework.zip?download"> <img id="frameworkDownload" class="badgeLabel" src="img/DownloadFrameworkText.gif" alt="Download the Framework" /><br /> <img class="badge" src="img/DownloadFramework.gif" /> + <p class="badge">You use a simple text editor and compiler. You know what a class path is and you don't want to be bothered with all the fluff. You are running on <strong>Windows, Mac, or *nix</strong>.</p> </a> @@ -125,11 +135,13 @@ <a href="http://prdownloads.sourceforge.net/asunit/XULUI-Win.msi?download"> <img class="badgeLabel" src="img/DownloadXULUIText.gif" alt="Download the XULUI" /><br /> <img class="badge" src="img/DownloadXULUI.gif" /> + <p class="badge">You use <strong>Eclipse</strong> or some other IDE, you want help building classes, test cases and test suites. You are writing <strong style="white-space:nowrap">ActionScript 2.0 or 3.0</strong>.</p><p class="badge">You are running <strong>Windows</strong>. </p> </a> </td> <td class="badge"> + <a href="http://prdownloads.sourceforge.net/asunit/FlashUi.mxp?download"> <img class="badgeLabel" src="img/DownloadMXPText.gif" alt="Download the MXP" /><br /> <img class="badge" src="img/DownloadMXP.gif" /> @@ -137,6 +149,7 @@ </a> </td> + </tr> <tr> <td class="badge-footer"></td> @@ -145,8 +158,9 @@ </tr> <tr> + <td class="badge-footer"></td> - <td class="badge-footer">*OSX users can <a href="files/releases/XULUI-Mac.zip">grab this build</a><br /><i>(No mac installer yet -<br /> <a href="http://lists.sourceforge.net/lists/listinfo/asunit-users">wanna help change that</a>?)</i></td> + <td class="badge-footer">*OSX users can <a href="http://aralbalkan.com/798">grab this build</a><br /><i>(Generously contributed by Aral Balkan)</i></td> <td class="badge-footer"></td> </tr> </table> @@ -165,11 +179,13 @@ <td class="question">Get Involved</td> <td class="answer"> <p>AsUnit was first released in March of 2004 by <a href="http://www.lukebayes.com">Luke Bayes</a> and <a href="http://www.alimills.com">Ali Mills</a> of <a href="http://www.patternpark.com">Pattern Park</a>. Since then, many people have contributed to the project and you can be one of them.</p> + <p>One of the simplest and most helpful ways you can get involved is by <a href="http://lists.sourceforge.net/lists/listinfo/asunit-users">joining our mailing list</a> and asking questions about things that seem unclear. Your questions help us figure out what to focus on next.</p> <p>If you're interested in contributing some real time to the project, please check out the to-do lists and writeboards at our <a href="http://patternpark.projectpath.com/projects/333541/todos">basecamp</a> site.</p> <p>Username: anonymous<br /> Password: anonymous</p> + </p> </td> </tr> @@ -177,15 +193,18 @@ <tr> <td class="question">Get More Involved</td> <td class="answer"><p>If you are interested in becoming a more serious contributor, please feel free to start <a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/">browsing the Subversion repository</a> or <a href="http://sourceforge.net/svn/?group_id=108947">checking out the sources directly</a>.</p> + <p>If you're going to pull down the source code, be aware that it's pretty large. You would probably do well to grab only the module or folders that interest you.</p> <ul> <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/comm/">comm</a>:</strong> Communications sources are in here. This web site, our <a href="http://asunit.sourceforge.net/AsUnitTrailer.swf" alt="right-click to download this">trailer for being Flashforward film festival finalists</a>, T-shirt art, logos, etc... </li> <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/flashui">flashui</a>:</strong> The files required to build the MXP file for the Flash IDE extension are in here. <i>These files are pretty stale at this point and probably won't build easily without some human intervention. It would be nice if someone could write a shell script that copies requisite framework sources into the MXI's expected directories, builds the MXP and then removes the copied sources?</i></li> + <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/framework">framework</a>:</strong> This module should house the absolute minimal files for getting AsUnit to work manually across platforms. This is the tiny foundation upon which all that is AsUnit is built.</li> - <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/installers">installers</a>:</strong> Right now, there is only a win installer. <i>Hopefully some kind person will create some mac and *nix packages?</i></li> + <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/installers">installers</a>:</strong> Right now, the win installer is stored here, but for the time being, <a href="http://aralbalkan.com/798">Aral is hosting the Mac build</a>. </li> <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/swfui">swfui</a>:</strong> The source files required for the SWF-based AsUnit Ui that has been so popular with the AS 2.0 crowd.</li> + <li><strong><a href="http://svn.sourceforge.net/viewcvs.cgi/asunit/trunk/xului">xului</a>:</strong> The source and build files associated with the xului. <i>The files required to build the existing XUL UI installer are currently hiding in the xului/exploration package. We still need to clean these up and resolve some issues before publishing out to the actual installers module.</i></li> </ul> @@ -200,6 +219,7 @@ <td class="answer"><p>We would like to give the following contributors special recognition for their efforts:</p> <ul> <li><a href="http://www.flashant.org/">Aral</a> <a href="http://www.osflash.org">Balkan</a></li> + <li><a href="http://www.caleb.org">Caleb Adam Haye</a></li> <li><a href="http://www.danieldura.com/">Daniel Dura</a></li> <li><a href="http://www.v-i-a.net/">Eric Priou</a></li> @@ -207,6 +227,7 @@ <li><a href="http://www.bit-101.com/blog/">Keith Peters</a></li> <li><a href="http://collcoll.com/">Mark Daggett</a></li> <li><a href="http://www.robertpenner.com/">Robert Penner</a></li> + <li><a href="http://www.imagerator.com">Tibor Claassen</a></li> </ul> </td> @@ -216,6 +237,7 @@ </div> <!-- Learn More --> + <div id="learnMore" class="success-bar"></div> <div class="section"> <table> @@ -225,6 +247,7 @@ <td class="answer"> <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://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> @@ -243,6 +266,7 @@ </table> <p>We recognize that this section is in desparate need of more current content, if you are interested in contributing some instructional material, please <a href="http://lists.sourceforge.net/lists/listinfo/asunit-users">contact us</a> to discuss.</p> </div> + </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-12-10 20:17:10
|
Revision: 143 http://svn.sourceforge.net/asunit/?rev=143&view=rev Author: lukebayes Date: 2006-12-10 12:17:10 -0800 (Sun, 10 Dec 2006) Log Message: ----------- added osx installer path Added Paths: ----------- trunk/installers/osx/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-11-24 08:38:56
|
Revision: 142 http://svn.sourceforge.net/asunit/?rev=142&view=rev Author: lukebayes Date: 2006-11-24 00:38:57 -0800 (Fri, 24 Nov 2006) Log Message: ----------- fixed externals definition to use fully qualified paths Property Changed: ---------------- trunk/flashui/ Property changes on: trunk/flashui ___________________________________________________________________ Name: svn:externals - as2 ../framework/as2 as25 ../framework/as25 + as2 https://svn.sourceforge.net/svnroot/asunit/trunk/framework/as2 as25 https://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...> - 2006-11-24 08:35:12
|
Revision: 141 http://svn.sourceforge.net/asunit/?rev=141&view=rev Author: lukebayes Date: 2006-11-24 00:35:12 -0800 (Fri, 24 Nov 2006) Log Message: ----------- Set up flash ui to use svn externals for embedded code Property Changed: ---------------- trunk/flashui/ Property changes on: trunk/flashui ___________________________________________________________________ Name: svn:externals + as2 ../framework/as2 as25 ../framework/as25 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-11-24 08:32:12
|
Revision: 140 http://svn.sourceforge.net/asunit/?rev=140&view=rev Author: lukebayes Date: 2006-11-24 00:32:08 -0800 (Fri, 24 Nov 2006) Log Message: ----------- Cleaning up build process Modified Paths: -------------- trunk/framework/as3/build.sh Property Changed: ---------------- trunk/framework/as3/ Property changes on: trunk/framework/as3 ___________________________________________________________________ Name: svn:ignore - bin html-template .settings + .flexLibProperties bin html-template .settings Modified: trunk/framework/as3/build.sh =================================================================== --- trunk/framework/as3/build.sh 2006-11-22 18:37:25 UTC (rev 139) +++ trunk/framework/as3/build.sh 2006-11-24 08:32:08 UTC (rev 140) @@ -1,3 +1,8 @@ -#!/bin/bash - -compc -source-path . -output AsUnit.swc -namespace http://www.asunit.org/as3 manifest.xml -include-namespaces http://www.asunit.org/as3 \ No newline at end of file +#! /bin/bash + +rm -rf bin +mkdir bin + +# First Compile the SWC File... + +mxmlc -library-path 'bin/AsUnit.swc' -source-path '../../framework-test/as3' -debug -output 'bin/AsUnitTestRunner.swf' AsUnitTestRunner.as This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-11-22 18:37:25
|
Revision: 139 http://svn.sourceforge.net/asunit/?rev=139&view=rev Author: lukebayes Date: 2006-11-22 10:37:25 -0800 (Wed, 22 Nov 2006) Log Message: ----------- rearranged download links Modified Paths: -------------- trunk/comm/www/html/index.html Modified: trunk/comm/www/html/index.html =================================================================== --- trunk/comm/www/html/index.html 2006-11-22 18:34:55 UTC (rev 138) +++ trunk/comm/www/html/index.html 2006-11-22 18:37:25 UTC (rev 139) @@ -114,6 +114,14 @@ <table id="badges"> <tr> <td class="badge"> + <a href="http://prdownloads.sourceforge.net/asunit/Framework.zip?download"> + <img id="frameworkDownload" class="badgeLabel" src="img/DownloadFrameworkText.gif" alt="Download the Framework" /><br /> + <img class="badge" src="img/DownloadFramework.gif" /> + <p class="badge">You use a simple text editor and compiler. You know what a class path is and you don't want to be bothered with all the fluff. You are running on <strong>Windows, Mac, or *nix</strong>.</p> + + </a> + </td> + <td class="badge"> <a href="http://prdownloads.sourceforge.net/asunit/XULUI-Win.msi?download"> <img class="badgeLabel" src="img/DownloadXULUIText.gif" alt="Download the XULUI" /><br /> <img class="badge" src="img/DownloadXULUI.gif" /> @@ -129,25 +137,17 @@ </a> </td> - <td class="badge"> - <a href="http://prdownloads.sourceforge.net/asunit/Framework.zip?download"> - <img id="frameworkDownload" class="badgeLabel" src="img/DownloadFrameworkText.gif" alt="Download the Framework" /><br /> - <img class="badge" src="img/DownloadFramework.gif" /> - <p class="badge">You use a simple text editor and compiler. You know what a class path is and you don't want to be bothered with all the fluff. You are running on <strong>Windows, Mac, or *nix</strong>.</p> - - </a> - </td> </tr> <tr> + <td class="badge-footer"></td> <td class="badge-footer"><i>*This installer includes the framework</i></td> <td class="badge-footer"><i>*This installer includes the framework</i></td> - <td class="badge-footer"></td> </tr> <tr> + <td class="badge-footer"></td> <td class="badge-footer">*OSX users can <a href="files/releases/XULUI-Mac.zip">grab this build</a><br /><i>(No mac installer yet -<br /> <a href="http://lists.sourceforge.net/lists/listinfo/asunit-users">wanna help change that</a>?)</i></td> <td class="badge-footer"></td> - <td class="badge-footer"></td> </tr> </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-11-22 18:34:58
|
Revision: 138 http://svn.sourceforge.net/asunit/?rev=138&view=rev Author: lukebayes Date: 2006-11-22 10:34:55 -0800 (Wed, 22 Nov 2006) Log Message: ----------- Updating main page Modified Paths: -------------- trunk/comm/www/html/index.html Modified: trunk/comm/www/html/index.html =================================================================== --- trunk/comm/www/html/index.html 2006-11-11 16:57:45 UTC (rev 137) +++ trunk/comm/www/html/index.html 2006-11-22 18:34:55 UTC (rev 138) @@ -200,7 +200,7 @@ <td class="answer"><p>We would like to give the following contributors special recognition for their efforts:</p> <ul> <li><a href="http://www.flashant.org/">Aral</a> <a href="http://www.osflash.org">Balkan</a></li> - <li><a href="http://cvs.caleb.org/viewcvs.py/caleb/portfolio/docs/resume.html?rev=1.2">Caleb Haye</a></li> + <li><a href="http://www.caleb.org">Caleb Adam Haye</a></li> <li><a href="http://www.danieldura.com/">Daniel Dura</a></li> <li><a href="http://www.v-i-a.net/">Eric Priou</a></li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ali...@us...> - 2006-11-13 19:55:50
|
Revision: 137 http://svn.sourceforge.net/asunit/?rev=137&view=rev Author: alimills Date: 2006-11-11 08:57:45 -0800 (Sat, 11 Nov 2006) Log Message: ----------- adding assertEqualsFloat() which was donated by Penner Modified Paths: -------------- trunk/framework/as3/asunit/framework/Assert.as Modified: trunk/framework/as3/asunit/framework/Assert.as =================================================================== --- trunk/framework/as3/asunit/framework/Assert.as 2006-11-07 01:23:44 UTC (rev 136) +++ trunk/framework/as3/asunit/framework/Assert.as 2006-11-11 16:57:45 UTC (rev 137) @@ -207,6 +207,39 @@ failSame(message); } + /** + * Asserts that two numerical values are equal within a tolerance range. + * If they are not an AssertionFailedError is thrown with the given message. + */ + static public function assertEqualsFloat(...args:Array):void { + var message:String; + var expected:Number; + var actual:Number; + var tolerance:Number = 0; + + if(args.length == 3) { + message = ""; + expected = args[0]; + actual = args[1]; + tolerance = args[2]; + } + else if(args.length == 4) { + message = args[0]; + expected = args[1]; + actual = args[2]; + tolerance = args[3]; + } + else { + throw new IllegalOperationError("Invalid argument count"); + } + if (isNaN(tolerance)) tolerance = 0; + if(Math.abs(expected - actual) <= tolerance) { + return; + } + failNotEquals(message, expected, actual); + } + + static private function failSame(message:String):void { var formatted:String = ""; if(message != null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <luk...@us...> - 2006-11-07 01:24:06
|
Revision: 136 http://svn.sourceforge.net/asunit/?rev=136&view=rev Author: lukebayes Date: 2006-11-06 17:23:44 -0800 (Mon, 06 Nov 2006) Log Message: ----------- Cleaned up classes for swc creation, removed unused support and error classes Modified Paths: -------------- trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as trunk/framework/as3/asunit/errors/AssertionFailedError.as trunk/framework/as3/asunit/errors/ClassNotFoundError.as trunk/framework/as3/asunit/errors/InstanceNotFoundError.as trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as trunk/framework/as3/asunit/framework/TestCaseExample.as trunk/framework/as3/asunit/runner/BaseTestRunner.as trunk/framework/as3/asunit/textui/TestRunner.as trunk/framework/as3/asunit/util/Properties.as Added Paths: ----------- trunk/framework/as3/build.sh trunk/framework/as3/manifest.xml Removed Paths: ------------- trunk/framework/as3/asunit/errors/InvocationTargetError.as trunk/framework/as3/asunit/runner/TestRunListener.as Modified: trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as =================================================================== --- trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/AbstractMemberCalledError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,10 +1,10 @@ package asunit.errors { public class AbstractMemberCalledError extends Error { - public var name:String = "AbstractMemberCalledError"; public function AbstractMemberCalledError(message:String) { super(message); + name = "AbstractMemberCalledError"; } } } \ No newline at end of file Modified: trunk/framework/as3/asunit/errors/AssertionFailedError.as =================================================================== --- trunk/framework/as3/asunit/errors/AssertionFailedError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/AssertionFailedError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,7 +1,6 @@ package asunit.errors { public class AssertionFailedError extends Error { -// public var name:String = "AssertionFailedError"; public function AssertionFailedError(message:String) { super(message); Modified: trunk/framework/as3/asunit/errors/ClassNotFoundError.as =================================================================== --- trunk/framework/as3/asunit/errors/ClassNotFoundError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/ClassNotFoundError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,10 +1,10 @@ package asunit.errors { public class ClassNotFoundError extends Error { - public var name:String = "ClassNotFoundError"; public function ClassNotFoundError(message:String) { super(message); + name = "ClassNotFoundError"; } } } \ No newline at end of file Modified: trunk/framework/as3/asunit/errors/InstanceNotFoundError.as =================================================================== --- trunk/framework/as3/asunit/errors/InstanceNotFoundError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/InstanceNotFoundError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,7 +1,6 @@ package asunit.errors { public class InstanceNotFoundError extends Error { -// public var name:String = "InstanceNotFoundError"; public function InstanceNotFoundError(message:String) { super(message); Deleted: trunk/framework/as3/asunit/errors/InvocationTargetError.as =================================================================== --- trunk/framework/as3/asunit/errors/InvocationTargetError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/InvocationTargetError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,10 +0,0 @@ -package asunit.errors { - - public class InvocationTargetError extends Error { - public var name:String = "InvocationTargetError"; - - public function InvocationTargetError(message:String) { - super(message); - } - } -} \ No newline at end of file Modified: trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as =================================================================== --- trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/errors/UnimplementedFeatureError.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,10 +1,10 @@ package asunit.errors { public class UnimplementedFeatureError extends Error { - public var name:String = "UnimplementedFeatureError"; public function UnimplementedFeatureError(message:String) { super(message); + name = "UnimplementedFeatureError"; } } } \ No newline at end of file Modified: trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as =================================================================== --- trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/framework/AsynchronousTestCaseExample.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,5 +1,4 @@ package asunit.framework { - import flash.util.trace; import flash.net.URLRequest; import flash.net.URLLoader; import flash.events.*; @@ -54,7 +53,7 @@ protected override function tearDown():void { // destroy the class under test instance - delete instance; + instance = null; } public function testBookCount():void { Modified: trunk/framework/as3/asunit/framework/TestCaseExample.as =================================================================== --- trunk/framework/as3/asunit/framework/TestCaseExample.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/framework/TestCaseExample.as 2006-11-07 01:23:44 UTC (rev 136) @@ -69,5 +69,5 @@ // perform assertions in your handler assertEquals(Event.CHANGE, event.type); } - + } } Modified: trunk/framework/as3/asunit/runner/BaseTestRunner.as =================================================================== --- trunk/framework/as3/asunit/runner/BaseTestRunner.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/runner/BaseTestRunner.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,360 +1,15 @@ package asunit.runner { - import asunit.errors.AbstractMemberCalledError; - import asunit.errors.AssertionFailedError; - import asunit.errors.ClassNotFoundError; - import asunit.errors.InvocationTargetError; - import asunit.errors.UnimplementedFeatureError; - import asunit.framework.Test; - import asunit.framework.TestListener; - import asunit.framework.TestSuite; - import asunit.util.Properties; - import flash.display.Sprite; - import flash.errors.IllegalOperationError; - import flash.utils.describeType; - import flash.utils.getDefinitionByName; /** * Base class for all test runners. * This class was born live on stage in Sardinia during XP2000. */ public class BaseTestRunner extends Sprite { -// public class BaseTestRunner extends Sprite implements TestListener { -/* - public static const SUITE_METHODNAME:String = "suite"; - public static const STATUS_ERROR:int = 1; - public static const STATUS_FAILURE:int = 2; - private static var fPreferences:Properties; - protected static var fgMaxMessageLength:int = 500; - protected static var fgFilterStack:Boolean = true; - protected var fLoading:Boolean = true; - private var abstractClassName:String = "asunit.runner::BaseTestRunner"; - - public function BaseTestRunner() { -// if(describeType(this).@name == abstractClassName) { -// throw new AbstractMemberCalledError("BaseTestRunner.constructor"); -// } - } - - // Implementation of TestListener - - public function startTest(test:Test):void { - testStarted(test.toString()); - } - - protected static function setPreferences(preferences:Properties):void { - fPreferences = preferences; - } - - protected static function getPreferences():Properties { - if (fPreferences == null) { - fPreferences = new Properties(); - fPreferences.put("loading", "true"); - fPreferences.put("filterstack", "true"); - } - return fPreferences; - } - - private static function readPreferences():void { - throw new UnimplementedFeatureError("BaseTestRunner.readPreferences"); -// var is:InputStream = null; -// try { -// is = new FileInputStream(getPreferencesFile()); -// setPreferences(new Properties(getPreferences())); -// getPreferences().load(is); -// } catch (IOException e) { -// try { -// if (is != null) -// is.close(); -// } catch (IOException e1) { -// } -// } - } - - // throws IOException - public static function savePreferences():void { - throw new UnimplementedFeatureError("BaseTestRunner.savePreferences"); -// FileOutputStream fos = new FileOutputStream(getPreferencesFile()); -// try { -// getPreferences().store(fos, ""); -// } finally { -// fos.close(); -// } - } - - public function setPreference(key:String, value:String):void { - getPreferences().setProperty(key, value); - } - - public function endTest(test:Test):void { - testEnded(test.toString()); - } - - public function addError(test:Test, t:Error):void { - testFailed(BaseTestRunner.STATUS_ERROR, test, t); - } - - public function addFailure(test:Test, t:AssertionFailedError):void { - testFailed(BaseTestRunner.STATUS_FAILURE, test, t); - } - - // TestRunListener implementation - // BEGIN ABSTRACT METHODS - public function testStarted(testName:String):void { - throw new AbstractMemberCalledError("BaseTestRunner.testStarted"); - } - - public function testEnded(testName:String):void { - throw new AbstractMemberCalledError("BaseTestRunner.testEnded"); - } - - public function testFailed(status:int, test:Test, t:Error):void { - throw new AbstractMemberCalledError("BaseTestRunner.testFailed"); - } - - // Override to define how to handle a failed loading of - // a test suite. - protected function runFailed(message:String):void { - throw new AbstractMemberCalledError("BaseTestRunner.runFailed"); - } - - // Returns the Test corresponding to the given suite. This is - // a template method, subclasses override runFailed(), clearStatus(). - public function getTest(testCase:Class):Test { - return null; - - !!!!!!!!!!CHANGEED testCase from String to CLASS - not implemented yet - if (suiteClassName.length <= 0) { - clearStatus(); - return null; - } - var TestClass:Class = null; - - try { - TestClass = getDefinitionByName(testCase); - } - catch(e:ClassNotFoundError) { - var clazz:String = e.getMessage(); - if (clazz == null) { - clazz = suiteClassName; - } - runFailed("Class not found \"" + clazz + "\""); - return null; - } catch(e:Error) { - runFailed("Error: " + e.toString()); - return null; - } - - var testInstance:Test = null; - try { - testInstance = new TestClass(); - } catch(e:Error) { - // try to extract a test suite automatically - //clearStatus(); - //return new TestSuite(TestClass); - return null; - } - */ - -/* - try { - testClass = loadSuiteClass(suiteClassName); - } catch (e:ClassNotFoundError) { - var clazz:String = e.getMessage(); - if (clazz == null) { - clazz = suiteClassName; - } - runFailed("Class not found \"" + clazz + "\""); - return null; - } catch(e:Error) { - runFailed("Error: " + e.toString()); - return null; - } - var suiteMethod:Function = null; - try { - suiteMethod = testClass.getMethod(SUITE_METHODNAME, new Class[0]); - } catch(e:Error) { - // try to extract a test suite automatically - clearStatus(); - return new TestSuite(testClass); - } -// if (! Modifier.isStatic(suiteMethod.getModifiers())) { -// runFailed("Suite() method must be static"); -// return null; -// } - var test:Test = null; - try { - test = Test(suiteMethod.invoke(null, new Class[0])); // static method - if (test == null) { - return test; - } - } - catch (e:InvocationTargetError) { - runFailed("Failed to invoke suite():" + e.getTargetException().toString()); - return null; - } - catch (e:IllegalOperationError) { - runFailed("Failed to invoke suite():" + e.toString()); - return null; - } - clearStatus(); - return test; - } - - // Returns the formatted string of the elapsed time. - public function elapsedTimeAsString(runTime:Number):String { - return runTime.toString(); -// return NumberFormat.getInstance().format(Number(runTime/1000)); - } - - // Processes the command line arguments and - // returns the name of the suite class to run or null - protected function processArguments(args:Array):String { - var suiteName:String = null; - for (var i:int; i < args.length; i++) { - if (args[i] == "-noloading") { - setLoading(false); - } else if (args[i] == "-nofilterstack") { - fgFilterStack= false; - } else if (args[i] == "-c") { - if (args.length > i+1) { - suiteName = extractClassName(args[i+1]); - } - else { - trace("Missing Test class name"); - } - i++; - } else { - suiteName = args[i]; - } - } - return suiteName; - } - - // Sets the loading behaviour of the test runner - public function setLoading(enable:Boolean):void { - fLoading = enable; - } - - // Extract the class name from a String in VA/Java style - public function extractClassName(className:String):String { - if(className.indexOf("Default package for") == 0) { - return className.substring(className.lastIndexOf(".") + 1); - } - return className; - } - - // Truncates a String to the maximum length. - public static function truncate(s:String):String { - if (fgMaxMessageLength != -1 && s.length > fgMaxMessageLength) - s = s.substring(0, fgMaxMessageLength) + "..."; - return s; - } - - // Returns the loaded Class for a suite name. - // throws ClassNotFoundException - protected function loadSuiteClass(suiteClassName:String):Class { - return getLoader().load(suiteClassName); - } - - // Clears the status message. - protected function clearStatus():void { // Belongs in the GUI TestRunner class - throw new AbstractMemberCalledError("BaseTestRunner.clearStatus"); - } - - // Returns the loader to be used. - public function getLoader():TestSuiteLoader { - throw new UnimplementedFeatureError("BaseTestRunner.getLoader"); -// if (useReloadingTestSuiteLoader()) -// return new ReloadingTestSuiteLoader(); -// return new StandardTestSuiteLoader(); - } - - protected function useReloadingTestSuiteLoader():Boolean { - return false; -// return getPreference("loading").equals("true") && !inVAJava() && fLoading; - } - - // Should return File... - private static function getPreferencesFile():Object { - throw new UnimplementedFeatureError("BaseTestRunner.getPreferencesFile"); -// var home:String = System.getProperty("user.home"); -// return new File(home, "junit.properties"); - } - - public static function getPreference(key:String):String { - return getPreferences().getProperty(key); - } - -// public static function inVAJava():Boolean { -// try { -// Class.forName("com.ibm.uvm.tools.DebugSupport"); -// } -// catch (e:Error) { -// return false; -// } -// return true; -// } - - // Returns a filtered stack trace - public static function getFilteredTrace(t:Error):String { - throw new UnimplementedFeatureError("BaseTestRunner.getFilteredTrace"); - var stringWriter:StringWriter = new StringWriter(); - var writer:PrintWriter = new PrintWriter(stringWriter); - t.printStackTrace(writer); - var buffer:StringBuffer = stringWriter.getBuffer(); - var trace:String = buffer.toString(); - return BaseTestRunner.getFilteredTrace(trace); - } -*/ // Filters stack frames from internal JUnit classes public static function getFilteredTrace(stack:String):String { return stack; - - //throw new UnimplementedFeatureError("BaseTestRunner.getFilteredTrace"); -// if (showStackRaw()) { -// return stack; -// } -// -// var sw:StringWriter = new StringWriter(); -// var pw:PrintWriter = new PrintWriter(sw); -// var sr:StringReader = new StringReader(stack); -// var br:BufferedReader = new BufferedReader(sr); -// var line:String; -// try { -// while ((line = br.readLine()) != null) { -// if (!filterLine(line)) -// pw.println(line); -// } -// } catch (Exception IOException) { -// return stack; // return the stack unfiltered -// } -// return sw.toString(); } -/* - protected static function showStackRaw():Boolean { - return !getPreference("filterstack") == true || fgFilterStack == false; - } - - protected static function filterLine(line:String):Boolean { - var patterns:Array = new Array(); - patterns.push("junit.framework.TestCase"); - patterns.push("junit.framework.TestResult"); - patterns.push("junit.framework.TestSuite"); - patterns.push("junit.framework.Assert."); // don't filter AssertionFailure - patterns.push("junit.swingui.TestRunner"); - patterns.push("junit.awtui.TestRunner"); - patterns.push("junit.textui.TestRunner"); - patterns.push("java.lang.reflect.Method.invoke("); - - for(var i:uint; i < patterns.length; i++) { - if (line.indexOf(patterns[i]) > 0) { - return true; - } - } - return false; - } - */ } } Deleted: trunk/framework/as3/asunit/runner/TestRunListener.as =================================================================== --- trunk/framework/as3/asunit/runner/TestRunListener.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/runner/TestRunListener.as 2006-11-07 01:23:44 UTC (rev 136) @@ -1,20 +0,0 @@ -package asunit.runner { - /** - * A listener interface for observing the - * execution of a test run. Unlike TestListener, - * this interface using only primitive objects, - * making it suitable for remote test execution. - */ - public interface TestRunListener { - /* test status constants*/ - static const STATUS_ERROR:int; - static const STATUS_FAILURE:int; - - function testRunStarted(testSuiteName:String, testCount:int):void; - function testRunEnded(elapsedTime:Number):void; - function testRunStopped(elapsedTime:Number):void; - function testStarted(testName:String):void; - function testEnded(testName:String):void; - function testFailed(status:int, testName:String, trace:String):void; - } -} \ No newline at end of file Modified: trunk/framework/as3/asunit/textui/TestRunner.as =================================================================== --- trunk/framework/as3/asunit/textui/TestRunner.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/textui/TestRunner.as 2006-11-07 01:23:44 UTC (rev 136) @@ -43,7 +43,6 @@ private function configureListeners():void { addEventListener(Event.ADDED, addedHandler); -// addEventListener(KeyboardEventType.KEY_DOWN, onKeyDown); } protected function addedHandler(event:Event):void { Modified: trunk/framework/as3/asunit/util/Properties.as =================================================================== --- trunk/framework/as3/asunit/util/Properties.as 2006-11-07 00:17:29 UTC (rev 135) +++ trunk/framework/as3/asunit/util/Properties.as 2006-11-07 01:23:44 UTC (rev 136) @@ -23,6 +23,7 @@ catch(e:Error) { throw IllegalOperationError("Properties.getProperty"); } + return null; } } } \ No newline at end of file Added: trunk/framework/as3/build.sh =================================================================== --- trunk/framework/as3/build.sh (rev 0) +++ trunk/framework/as3/build.sh 2006-11-07 01:23:44 UTC (rev 136) @@ -0,0 +1,3 @@ +#!/bin/bash + +compc -source-path . -output AsUnit.swc -namespace http://www.asunit.org/as3 manifest.xml -include-namespaces http://www.asunit.org/as3 \ No newline at end of file Added: trunk/framework/as3/manifest.xml =================================================================== --- trunk/framework/as3/manifest.xml (rev 0) +++ trunk/framework/as3/manifest.xml 2006-11-07 01:23:44 UTC (rev 136) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<componentPackage> + <component id="Assert" class="asunit.framework.Assert" /> + <component id="AsynchronousTestCase" class="asunit.framework.AsynchronousTestCase" /> + <component id="AsynchronousTestCaseExample" class="asunit.framework.AsynchronousTestCaseExample" /> + <component id="Test" class="asunit.framework.Test" /> + <component id="TestCase" class="asunit.framework.TestCase" /> + <component id="TestCaseExample" class="asunit.framework.TestCaseExample" /> + <component id="TestFailure" class="asunit.framework.TestFailure" /> + <component id="TestListener" class="asunit.framework.TestListener" /> + <component id="TestResult" class="asunit.framework.TestResult" /> + <component id="TestSuite" class="asunit.framework.TestSuite" /> + + <component id="BaseTestRunner" class="asunit.runner.BaseTestRunner" /> + <component id="TestSuiteLoader" class="asunit.runner.TestSuiteLoader" /> + <component id="Version" class="asunit.runner.Version" /> + <component id="FlexRunner" class="asunit.textui.FlexRunner" /> + <component id="FlexTestRunner" class="asunit.textui.FlexTestRunner" /> + <component id="ResultPrinter" class="asunit.textui.ResultPrinter" /> + <component id="TestRunner" class="asunit.textui.TestRunner" /> + <component id="ArrayIterator" class="asunit.util.ArrayIterator" /> + <component id="Iterator" class="asunit.util.Iterator" /> + <component id="Properties" class="asunit.util.Properties" /> + <component id="LayoutManager" class="mx.managers.LayoutManager" /> + + <component id="AbstractMemberCalledError" class="asunit.errors.AbstractMemberCalledError" /> + <component id="AssertionFailedError" class="asunit.errors.AssertionFailedError" /> + <component id="ClassNotFoundError" class="asunit.errors.ClassNotFoundError" /> + <component id="InstanceNotFoundError" class="asunit.errors.InstanceNotFoundError" /> + <component id="UnimplementedFeatureError" class="asunit.errors.UnimplementedFeatureError" /> +</componentPackage> \ 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...> - 2006-11-07 00:17:33
|
Revision: 135 http://svn.sourceforge.net/asunit/?rev=135&view=rev Author: lukebayes Date: 2006-11-06 16:17:29 -0800 (Mon, 06 Nov 2006) Log Message: ----------- Removed LayoutManagerTest and related class, as they can't be executed / tested without framework dependencies Removed Paths: ------------- trunk/framework/as3/mx/managers/LayoutManagerTest.as trunk/framework/as3/mx/managers/MockContainer.as Deleted: trunk/framework/as3/mx/managers/LayoutManagerTest.as =================================================================== --- trunk/framework/as3/mx/managers/LayoutManagerTest.as 2006-11-07 00:15:34 UTC (rev 134) +++ trunk/framework/as3/mx/managers/LayoutManagerTest.as 2006-11-07 00:17:29 UTC (rev 135) @@ -1,34 +0,0 @@ -package mx.managers { - import asunit.framework.TestCase; - import mx.core.Container; - - public class LayoutManagerTest extends TestCase { - private var container:MockContainer; - private var instance:LayoutManager; - - public function LayoutManagerTest(testMethod:String=null) { - super(testMethod); - } - - override protected function setUp():void { - trace("set up"); - instance = LayoutManager.getInstance(); - container = new MockContainer(); - addChild(container); - } - - override protected function tearDown():void { - trace("tearDown"); - removeChild(container); - container = null; - } - - public function testInstantiated():void { - assertTrue(instance is LayoutManager); - } - - public function testContainer():void { - assertTrue(container is MockContainer); - } - } -} \ No newline at end of file Deleted: trunk/framework/as3/mx/managers/MockContainer.as =================================================================== --- trunk/framework/as3/mx/managers/MockContainer.as 2006-11-07 00:15:34 UTC (rev 134) +++ trunk/framework/as3/mx/managers/MockContainer.as 2006-11-07 00:17:29 UTC (rev 135) @@ -1,16 +0,0 @@ -package mx.managers { - import mx.core.Container; - - public class MockContainer extends Container { - - override protected function commitProperties():void { - super.commitProperties(); - trace("commit props"); - } - - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { - super.updateDisplayList(unscaledWidth, unscaledHeight); - trace("update display list"); - } - } -} \ 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...> - 2006-11-07 00:15:38
|
Revision: 134 http://svn.sourceforge.net/asunit/?rev=134&view=rev Author: lukebayes Date: 2006-11-06 16:15:34 -0800 (Mon, 06 Nov 2006) Log Message: ----------- Removed interface that didn't actually need to be imported Removed Paths: ------------- trunk/framework/as3/mx/managers/ILayoutManagerClient.as Deleted: trunk/framework/as3/mx/managers/ILayoutManagerClient.as =================================================================== --- trunk/framework/as3/mx/managers/ILayoutManagerClient.as 2006-11-07 00:11:50 UTC (rev 133) +++ trunk/framework/as3/mx/managers/ILayoutManagerClient.as 2006-11-07 00:15:34 UTC (rev 134) @@ -1,161 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors. -// All Rights Reserved. The following is Source Code and is subject to all -// restrictions on such code as contained in the End User License Agreement -// accompanying this product. -// -//////////////////////////////////////////////////////////////////////////////// - -package mx.managers -{ - -import flash.events.IEventDispatcher; -import mx.core.mx_internal; - -use namespace mx_internal; - -/** - * The ILayoutManagerClient interface defines the interface - * that a component must implement to participate in the - * LayoutManager's commit/measurement/layout sequence. - * - * <p>Objects that implement this interface can be passed to the - * LayoutManager's <code>invalidateProperties()</code> method. - * When the LayoutManager reaches the commit properties phase, - * the LayoutManager invokes this object's <code>validateProperties()</code> - * method.</p> - * - * <p>Similarly, if an object is passed to the LayoutManager's - * <code>invalidateSize()</code> method, then the LayoutManager - * calls that object's <code>validateSize()</code> method - * during its measurement phase, and if an object is passed - * to LayoutManager's <code>invalidateDisplayList()</code> method, - * then the LayoutManager calls its <code>validateDisplayList()</code> method - * during the layout phase.</p> - * - * <p>The ILayoutManagerClient interface is implemented by the UIComponent - * and ProgrammaticSkin classes.</p> - */ -public interface ILayoutManagerClient extends IEventDispatcher -{ - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // initialized - //---------------------------------- - - /** - * A flag that determines if an object has been through all three phases - * of layout validation (provided that any were required) - * This flag should only be modified by the LayoutManager. - */ - function get initialized():Boolean; - - /** - * @private - */ - function set initialized(value:Boolean):void; - - //---------------------------------- - // nestLevel - //---------------------------------- - - /** - * The top-level SystemManager has a nestLevel of 1. - * Its immediate children (the top-level Application and any pop-up - * windows) have a <code>nestLevel</code> of 2. - * Their children have a <code>nestLevel</code> of 3, and so on. - * - * The <code>nestLevel</code> is used to sort ILayoutManagerClients - * during the measurement and layout phases. - * During the commit phase, the LayoutManager commits properties on clients - * in order of decreasing <code>nestLevel</code>, so that an object's - * children have already had their properties committed before Flex - * commits properties on the object itself. - * During the measurement phase, the LayoutManager measures clients - * in order of decreasing <code>nestLevel</code>, so that an object's - * children have already been measured before Flex measures - * the object itself. - * During the layout phase, the LayoutManager lays out clients - * in order of increasing <code>nestLevel</code>, so that an object - * has a chance to set the sizes of its children before the child - * objects are asked to position and size their children. - */ - function get nestLevel():int; - - /** - * @private - */ - function set nestLevel(value:int):void; - - //---------------------------------- - // processedDescriptors - //---------------------------------- - - /** - * @copy mx.core.UIComponent#processedDescriptors - */ - function get processedDescriptors():Boolean; - - /** - * @private - */ - function set processedDescriptors(value:Boolean):void; - - //---------------------------------- - // updateCompletePendingFlag - //---------------------------------- - - /** - * A flag that determines if an object is waiting to have its - * <code>updateComplete</code> event dispatched. - * This flag should only be modified by the LayoutManager. - */ - function get updateCompletePendingFlag():Boolean; - - /** - * @private - */ - function set updateCompletePendingFlag(value:Boolean):void; - - //-------------------------------------------------------------------------- - // - // Methods - // - //-------------------------------------------------------------------------- - - /** - * Validates the properties of a component. - * If the <code>LayoutManager.invalidateProperties()</code> method is called with - * this ILayoutManagerClient, then the <code>validateProperties()</code> method - * is called when it's time to commit property values. - */ - function validateProperties():void; - - /** - * Validates the measured size of the component - * If the <code>LayoutManager.invalidateSize()</code> method is called with - * this ILayoutManagerClient, then the <code>validateSize()</code> method - * is called when it's time to do measurements. - * - * @param recursive If <code>true</code>, call this method - * on the objects children. - */ - function validateSize(recursive:Boolean=false):void; - - /** - * Validates the position and size of children and draws other - * visuals. - * If the <code>LayoutManager.invalidateDisplayList()</code> method is called with - * this ILayoutManagerClient, then the <code>validateDisplayList()</code> method - * is called when it's time to update the display list. - */ - function validateDisplayList():void; -} - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |