Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensure tests run and asdocs are generated

see test/UtilsTestRunner.as for test runner
see test/UtilsTestSuite.as for suite of all the tests that are defined for as3-utils
  • Loading branch information...
commit 430d57da8b2cab40fb654f9beb9a6a9ef9c2709d 1 parent 920ced4
@drewbourne drewbourne authored
Showing with 224 additions and 93 deletions.
  1. +0 −2  src/utils/align/alignCenter.as
  2. +1 −1  src/utils/date/iso8601ToDate.as
  3. +5 −4 src/utils/date/timeCode.as
  4. +2 −3 src/utils/display/cropBitmapData.as
  5. +2 −3 src/utils/display/scheduleForNextFrame.as
  6. +8 −5 src/utils/display/traceChildren.as
  7. +1 −3 src/utils/geom/simplifyAngle.as
  8. +1 −3 src/utils/geom/trimAngle.as
  9. +1 −3 src/utils/js/callJSFunction.as
  10. +2 −3 src/utils/location/getDomain.as
  11. +2 −3 src/utils/location/getLocationName.as
  12. +2 −3 src/utils/string/convertBytesString.as
  13. +2 −3 src/utils/string/randomSequence.as
  14. +7 −2 src/utils/validation/US_STATE_ABBREVIATIONS.as
  15. +6 −7 src/utils/xml/getSiblingByIndex.as
  16. +30 −0 test/UtilsTestRunner.as
  17. +114 −0 test/UtilsTestSuite.as
  18. +6 −10 test/utils/align/alignCenterTest.as
  19. +1 −1  test/utils/object/cloneTest.as
  20. +1 −1  test/utils/object/containsTest.as
  21. +1 −1  test/utils/string/numberToStringTest.as
  22. +1 −1  test/utils/string/stringHasValueTest.as
  23. +6 −6 test/utils/validation/{isValidEmailAddress.as → IsValidEmailAddressTest.as}
  24. +2 −2 test/utils/validation/encodeCreditCardNumberTest.as
  25. +2 −2 test/utils/validation/getCreditCardProviderTest.as
  26. +2 −2 test/utils/validation/isBlankTest.as
  27. +2 −2 test/utils/validation/isCreditCardTest.as
  28. +2 −2 test/utils/validation/isEmailTest.as
  29. +2 −2 test/utils/validation/isNumericTest.as
  30. +2 −2 test/utils/validation/isPOBoxTest.as
  31. +2 −5 test/utils/validation/isUSAStateAbbreviationTest.as
  32. +2 −2 test/utils/validation/isUrlTest.as
  33. +1 −1  test/utils/validation/isValidCreditCardNumberTest.as
  34. +1 −1  test/utils/validation/isValidExpirationDateTest.as
  35. +1 −1  test/utils/validation/isValidPhoneNumberTest.as
  36. +1 −1  test/utils/xml/isValidXMLTest.as
View
2  src/utils/align/alignCenter.as
@@ -1,8 +1,6 @@
package utils.align {
import flash.display.DisplayObject;
-
-
/**
* Center align object to target.
*/
View
2  src/utils/date/iso8601ToDate.as
@@ -12,7 +12,7 @@ package utils.date {
* </pre>
* @param iso8601 Valid ISO 8601 formatted String
* @return Date object of the specified date and time of the ISO 8601 String in universal time
- * @see <a href="http://www.w3.org/TR/NOTE-datetime">W3C ISO 8601 specification</a>
+ * @see http://www.w3.org/TR/NOTE-datetime (W3C ISO 8601 specification)
* @author Aaron Clinger
* @author Shane McCartney
* @author David Nelson
View
9 src/utils/date/timeCode.as
@@ -1,18 +1,19 @@
package utils.date {
-
-
/**
* Utility function for generating time code given a number seconds.
* @param sec Seconds
* @return Timecode
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function timeCode(sec:Number):String {
var h:Number = Math.floor(sec / 3600);
var m:Number = Math.floor((sec % 3600) / 60);
var s:Number = Math.floor((sec % 3600) % 60);
- return (h == 0 ? "" : (h < 10 ? "0" + String(h) + ":" : String(h) + ":")) + (m < 10 ? "0" + String(m) : String(m)) + ":" + (s < 10 ? "0" + String(s) : String(s));
+ return (h == 0 ? ""
+ : (h < 10 ? "0" + String(h) + ":" : String(h) + ":"))
+ + (m < 10 ? "0" + String(m) : String(m)) + ":"
+ + (s < 10 ? "0" + String(s) : String(s));
}
}
View
5 src/utils/display/cropBitmapData.as
@@ -1,16 +1,15 @@
package utils.display {
+
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
-
-
/**
* Crop the BitmapData source and return a new BitmapData.
* @param source Source BitmapData
* @param dest Crop area as Rectangle
* @return Cropped source as BitmapData
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function cropBitmapData(source:BitmapData, dest:Rectangle):BitmapData {
var o:BitmapData = new BitmapData(dest.width, dest.height);
View
5 src/utils/display/scheduleForNextFrame.as
@@ -1,14 +1,13 @@
package utils.display {
+
import flash.display.Shape;
import flash.events.Event;
-
-
/**
* Wait for a next frame.
* Prevents high CPU state, when AVM doesn't send ENTER_FRAMES. It just simply waits until it gets one.
* @param callback Function to call once when next frame is displayed
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function scheduleForNextFrame(callback:Function):void {
var obj:Shape = new Shape();
View
13 src/utils/display/traceChildren.as
@@ -1,27 +1,30 @@
package utils.display {
+
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
-
-
/**
* trace() children of the DisplayObjectContainer.
* @param container DisplayObjectContainer to get children of
* @param indentLevel Indentation level (default 0)
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function traceChildren(container:DisplayObjectContainer, indentLevel:int = 0):void {
for(var i:int = 0; i < container.numChildren; i++) {
var thisChild:DisplayObject = container.getChildAt(i);
var output:String = "";
- for(var j:int = 0; j < indentLevel; j++) output += " ";
+ for(var j:int = 0; j < indentLevel; j++) {
+ output += " ";
+ }
output += "+ " + thisChild.name + " = " + String(thisChild);
trace(output);
- if(thisChild is DisplayObjectContainer) traceChildren(DisplayObjectContainer(thisChild), indentLevel + 1);
+ if(thisChild is DisplayObjectContainer) {
+ traceChildren(DisplayObjectContainer(thisChild), indentLevel + 1);
+ }
}
}
}
View
4 src/utils/geom/simplifyAngle.as
@@ -1,7 +1,5 @@
package utils.geom {
-
-
/**
* Simplifies the supplied angle to its simplest representation.
* Example code:
@@ -11,7 +9,7 @@ package utils.geom {
* </pre>
* @param angle Angle to simplify in degrees
* @return Supplied angle simplified
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function simplifyAngle(angle:Number):Number {
var _rotations:Number = Math.floor(angle / 360);
View
4 src/utils/geom/trimAngle.as
@@ -1,7 +1,5 @@
package utils.geom {
-
-
/**
* Trims the supplied angle to its 0..360 representation.
* Example code:
@@ -10,7 +8,7 @@ package utils.geom {
* </pre>
* @param value Angle to trim
* @return Supplied angle trimmed
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function trimAngle(value:Number):Number {
var a:Number = value;
View
4 src/utils/js/callJSFunction.as
@@ -1,8 +1,6 @@
package utils.js {
import flash.external.ExternalInterface;
-
-
/**
* Call a JS function.
* @param func Name of the function to be called
@@ -13,7 +11,7 @@ package utils.js {
* @throws Error if empty function name supplied
* @throws Error if SecurityError occurred
* @throws Error if Error occurred
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function callJSFunction(func:String, arg1:* = null, arg2:* = null, arg3:* = null, arg4:* = null):void {
if(func == "") {
View
5 src/utils/location/getDomain.as
@@ -1,8 +1,7 @@
package utils.location {
+
import flash.display.DisplayObject;
-
-
/**
* Detects MovieClip domain location.
* Function does not return folder path or file name. The method also treats "www" and sans "www" as the same; if "www" is present method does not return it.
@@ -15,7 +14,7 @@ package utils.location {
* @author Aaron Clinger
* @author Shane McCartney
* @author David Nelson
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function getDomain(location:DisplayObject):String {
var baseUrl:String = location.loaderInfo.url.split("://")[1].split("/")[0];
View
5 src/utils/location/getLocationName.as
@@ -1,17 +1,16 @@
package utils.location {
+
import flash.external.ExternalInterface;
import utils.capabilities.isStandAlone;
-
-
/**
* Return current location name.
* @return Current location name
* @author Aaron Clinger
* @author Shane McCartney
* @author David Nelson
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function getLocationName():String {
var out:String;
View
5 src/utils/string/convertBytesString.as
@@ -1,13 +1,12 @@
package utils.string {
+
import utils.conversion.bytesToKilobytes;
-
-
/**
* Convert bytes to a String ("X B" or "X kB")
* @param value Bytes count
* @return Result String
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function convertBytesString(value:uint):String {
return (value <= 8192 ? (String(value) + " B") : (String(bytesToKilobytes(value)) + " kB"));
View
5 src/utils/string/randomSequence.as
@@ -1,14 +1,13 @@
package utils.string {
+
import utils.number.randomIntegerWithinRange;
-
-
/**
* Get random sentence.
* @param maxLength Max chars
* @param minLength Min chars
* @return Random sentence
- * @author Vaclav Vancura (<a href="http://vancura.org">vancura.org</a>, <a href="http://twitter.com/vancura">@vancura</a>)
+ * @author Vaclav Vancura (http://vancura.org, http://twitter.com/vancura)
*/
public function randomSequence(maxLength:uint = 50, minLength:uint = 10):String {
return randomCharacters(randomIntegerWithinRange(minLength, maxLength), " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
View
9 src/utils/validation/US_STATE_ABBREVIATIONS.as
@@ -1,5 +1,10 @@
package utils.validation
{
- public const US_STATE_ABBREVIATIONS:Array = ['ak', 'al', 'ar', 'az', 'ca', 'co', 'ct', 'dc', 'de', 'fl', 'ga', 'hi', 'ia', 'id', 'il', 'in', 'ks', 'ky', 'la', 'ma', 'md', 'me', 'mi', 'mn', 'mo', 'ms', 'mt', 'nb', 'nc',
- 'nd', 'nh', 'nj', 'nm', 'nv', 'ny', 'oh', 'ok', 'or', 'pa', 'ri', 'sc', 'sd', 'tn', 'tx', 'ut', 'va', 'vt', 'wa', 'wi', 'wv', 'wy'];
+ public const US_STATE_ABBREVIATIONS:Array = [
+ 'ak', 'al', 'ar', 'az', 'ca', 'co', 'ct', 'dc', 'de', 'fl',
+ 'ga', 'hi', 'ia', 'id', 'il', 'in', 'ks', 'ky', 'la', 'ma',
+ 'md', 'me', 'mi', 'mn', 'mo', 'ms', 'mt', 'nb', 'nc', 'nd',
+ 'nh', 'nj', 'nm', 'nv', 'ny', 'oh', 'ok', 'or', 'pa', 'ri',
+ 'sc', 'sd', 'tn', 'tx', 'ut', 'va', 'vt', 'wa', 'wi', 'wv',
+ 'wy'];
}
View
13 src/utils/xml/getSiblingByIndex.as
@@ -12,19 +12,18 @@ package utils.xml
* @playerversion Flash 9.0
*
* @example Getting a sibling 2 positions behind a node
- * <listing version="3.0" >
- * var x:XML =
- * <root>
+ * <listing version="3.0">
+ * var x:XML = <root>
* <stuff>value1</stuff>
* <stuff>value2</stuff>
* <stuff>value3</stuff>
* </root>;
*
- * //Request sibling 2 positions before "value3"
- * var sibling:XML = getSiblingByIndex(x.stuff[2], -2);
+ * //Request sibling 2 positions before "value3"
+ * var sibling:XML = getSiblingByIndex(x.stuff[2], -2);
*
- * //returns "value1"
- *</listing>
+ * //returns "value1"
+ * </listing>
*/
public function getSiblingByIndex(x:XML, count:int):XML
{
View
30 test/UtilsTestRunner.as
@@ -0,0 +1,30 @@
+package
+{
+ import flash.display.Sprite;
+
+ import org.flexunit.internals.TraceListener;
+ import org.flexunit.listeners.CIListener;
+ import org.flexunit.runner.FlexUnitCore;
+ import org.fluint.uiImpersonation.IVisualTestEnvironment;
+ import org.fluint.uiImpersonation.VisualTestEnvironmentBuilder;
+
+ public class UtilsTestRunner extends Sprite
+ {
+ private var core:FlexUnitCore;
+ private var env:IVisualTestEnvironment;
+
+ public function UtilsTestRunner()
+ {
+ super();
+
+ // make the stage available to tests
+ env = VisualTestEnvironmentBuilder.getInstance(this).buildVisualTestEnvironment();
+
+ // run
+ core = new FlexUnitCore();
+ core.addListener(new TraceListener());
+ core.addListener(new CIListener());
+ core.run( UtilsTestSuite );
+ }
+ }
+}
View
114 test/UtilsTestSuite.as
@@ -0,0 +1,114 @@
+package
+{
+ import org.flexunit.runners.Suite;
+
+ import utils.align.AlignCenterTest;
+ import utils.align.AlignLeftTest;
+ import utils.align.AlignRightTest;
+ import utils.date.GetNextDayTest;
+ import utils.date.GetPrevDayTest;
+ import utils.date.GetTimeElapsedStringTest;
+ import utils.date.calendar.CalendarTests;
+ import utils.dictionary.CircularDictionaryTest;
+ import utils.geom.CartesianToPolarCoordinatesTest;
+ import utils.geom.PolarToCartesianCoordinatesTest;
+ import utils.number.ClampTest;
+ import utils.number.ToHexTest;
+ import utils.object.CloneTest;
+ import utils.object.ContainsTest;
+ import utils.object.CreateInstanceTest;
+ import utils.object.CreateTest;
+ import utils.object.MergeTest;
+ import utils.range.RandomRangeDateTest;
+ import utils.string.NumberToStringTest;
+ import utils.string.StringHasValueTest;
+ import utils.type.IsPassedByValueTest;
+ import utils.type.StrictIsTest;
+ import utils.validation.EncodeCreditCardNumberTest;
+ import utils.validation.GetCreditCardProviderTest;
+ import utils.validation.IsBlankTest;
+ import utils.validation.IsCreditCardTest;
+ import utils.validation.IsEmailTest;
+ import utils.validation.IsNumericTest;
+ import utils.validation.IsPOBoxTest;
+ import utils.validation.IsUSAStateAbbreviationTest;
+ import utils.validation.IsUrlTest;
+ import utils.validation.IsValidCreditCardNumberTest;
+ import utils.validation.IsValidEmailAddressTest;
+ import utils.validation.IsValidExpirationDateTest;
+ import utils.validation.IsValidPhoneNumberTest;
+ import utils.xml.GetNextSiblingTest;
+ import utils.xml.GetPreviousSiblingTest;
+ import utils.xml.GetSiblingByIndexTest;
+ import utils.xml.IsValidXMLTest;
+
+ Suite;
+
+ [RunWith("org.flexunit.runners.Suite")]
+ [Suite]
+ public class UtilsTestSuite
+ {
+ // utils.align
+ public var alignCenterTest:AlignCenterTest;
+ public var alignLeftTest:AlignLeftTest;
+ public var alighRightTest:AlignRightTest;
+
+ // utils.date.calendar
+ public var calendarTest:CalendarTests;
+
+ // utils.date
+ public var getNextDayTest:GetNextDayTest;
+ public var getPrevDayTest:GetPrevDayTest;
+ public var getTimeElapsedStringTest:GetTimeElapsedStringTest;
+
+ // utils.dictionary
+ public var circularDictionaryTest:CircularDictionaryTest;
+
+ // utils.geom
+ public var cartesianToPolarCoordinatesTest:CartesianToPolarCoordinatesTest;
+ public var polarToCartesianCoordinatesTest:PolarToCartesianCoordinatesTest;
+
+ // utils.number
+ public var clampTest:ClampTest;
+ public var toHexTest:ToHexTest;
+
+ // utils.object
+ public var cloneTest:CloneTest;
+ public var containsTest:ContainsTest;
+ public var createInstanceTest:CreateInstanceTest;
+ public var createTest:CreateTest;
+ public var mergeTest:MergeTest;
+
+ // utils.range
+ public var randomRangeDateTest:RandomRangeDateTest;
+
+ // utils.string
+ public var numberToStringTest:NumberToStringTest;
+ public var stringHasValueTest:StringHasValueTest;
+
+ // utils.type
+ public var isPassedByValueTest:IsPassedByValueTest;
+ public var strictIsTest:StrictIsTest;
+
+ // utils.validation
+// public var encodeCreditCardNumberTest:EncodeCreditCardNumberTest;
+// public var getCreditCardProviderTest:GetCreditCardProviderTest;
+// public var isBlankTest:IsBlankTest;
+// public var isCreditCardTest:IsCreditCardTest;
+// public var isEmailTest:IsEmailTest;
+// public var isNumericTest:IsNumericTest;
+// public var isPOBoxTest:IsPOBoxTest;
+// public var isUrlTest:IsUrlTest;
+// public var isUSAStateAbbreviation:IsUSAStateAbbreviationTest;
+ public var isValidCreditCardNumberTest:IsValidCreditCardNumberTest;
+ public var isValidEmailAddress:IsValidEmailAddressTest;
+ public var isValidExpirationDate:IsValidExpirationDateTest;
+ public var isValidPhoneNumberTest:IsValidPhoneNumberTest;
+
+ // utils.xml
+ public var getNextSiblingTest:GetNextSiblingTest;
+ public var getPreviousSiblingTest:GetPreviousSiblingTest;
+ public var getSiblingByIndexTest:GetSiblingByIndexTest;
+ public var isValidXMLTest:IsValidXMLTest;
+ }
+}
View
16 test/utils/align/alignCenterTest.as
@@ -1,15 +1,12 @@
package utils.align
{
import flash.display.Sprite;
-
- import mx.core.UIComponent;
-
+
import org.fluint.uiImpersonation.UIImpersonator;
import org.hamcrest.assertThat;
-
import org.hamcrest.object.equalTo;
- public class alignCenterTest
+ public class AlignCenterTest
{
[Test]
@@ -51,11 +48,10 @@ package utils.align
private function addItemAndTargetToStage(item:Sprite, target:Sprite):void
{
- var uiComponent:UIComponent = new UIComponent();
-
- UIImpersonator.addChild(uiComponent);
- uiComponent.addChild(item);
- uiComponent.addChild(target);
+ var container:Sprite = new Sprite();
+ container.addChild(item);
+ container.addChild(target);
+ UIImpersonator.addChild(container);
}
}
}
View
2  test/utils/object/cloneTest.as
@@ -3,7 +3,7 @@ package utils.object
import org.hamcrest.assertThat;
import org.hamcrest.object.hasProperties;
- public class cloneTest
+ public class CloneTest
{
[Test]
public function clone_creates_object_with_equal_properties():void
View
2  test/utils/object/containsTest.as
@@ -3,7 +3,7 @@ package utils.object
import flexunit.framework.Assert;
import utils.object.contains;
- public class containsTest
+ public class ContainsTest
{
[Test]
public function testContains():void {
View
2  test/utils/string/numberToStringTest.as
@@ -2,7 +2,7 @@ package utils.string
{
import org.flexunit.asserts.*;
- public class numberToStringTest
+ public class NumberToStringTest
{
[Before]
public function setup():void
View
2  test/utils/string/stringHasValueTest.as
@@ -4,7 +4,7 @@ package utils.string
import org.hamcrest.object.isFalse;
import org.hamcrest.object.isTrue;
- public class stringHasValueTest
+ public class StringHasValueTest
{
[Test]
public function stringHasValue_is_true_for_a_string_with_a_value():void
View
12 test/utils/validation/isValidEmailAddress.as → ...ils/validation/IsValidEmailAddressTest.as
@@ -8,35 +8,35 @@ package utils.validation {
import org.hamcrest.assertThat;
import org.hamcrest.object.equalTo;
-import utils.validation.isValidEmailAddress;
+import utils.validation.IsValidEmailAddressTest;
-public class isValidEmailAddress {
+public class IsValidEmailAddressTest {
[Test]
public function goodEmailPasses() : void {
- assertThat(utils.validation.isValidEmailAddress("test@test.com"), equalTo(true))
+ assertThat(isValidEmailAddress("test@test.com"), equalTo(true))
}
[Test]
public function emailWithSpaceFails() : void {
- assertThat(utils.validation.isValidEmailAddress("test@ test.com"), equalTo(false))
+ assertThat(isValidEmailAddress("test@ test.com"), equalTo(false))
}
[Test]
public function emailWithoutAtSymbolFails() : void {
- assertThat(utils.validation.isValidEmailAddress("testtest.com"), equalTo(false))
+ assertThat(isValidEmailAddress("testtest.com"), equalTo(false))
}
[Test]
public function emailWithInvalidCharacterFails() : void {
- assertThat(utils.validation.isValidEmailAddress("test@te$t.com"), equalTo(false))
+ assertThat(isValidEmailAddress("test@te$t.com"), equalTo(false))
}
}
View
4 test/utils/validation/encodeCreditCardNumberTest.as
@@ -5,8 +5,8 @@
* Time: 3:07 PM
*/
package utils.validation {
-public class encodeCreditCardNumberTest {
- public function encodeCreditCardNumberTest() {
+public class EncodeCreditCardNumberTest {
+ public function EncodeCreditCardNumberTest() {
}
}
}
View
4 test/utils/validation/getCreditCardProviderTest.as
@@ -5,8 +5,8 @@
* Time: 1:26 PM
*/
package utils.validation {
-public class getCreditCardProviderTest {
- public function getCreditCardProviderTest() {
+public class GetCreditCardProviderTest {
+ public function GetCreditCardProviderTest() {
}
}
}
View
4 test/utils/validation/isBlankTest.as
@@ -5,8 +5,8 @@
* Time: 11:48 AM
*/
package utils.validation {
-public class isBlankTest {
- public function isBlankTest() {
+public class IsBlankTest {
+ public function IsBlankTest() {
}
}
}
View
4 test/utils/validation/isCreditCardTest.as
@@ -5,8 +5,8 @@
* Time: 11:44 AM
*/
package utils.validation {
-public class isCreditCardTest {
- public function isCreditCardTest() {
+public class IsCreditCardTest {
+ public function IsCreditCardTest() {
}
}
}
View
4 test/utils/validation/isEmailTest.as
@@ -5,8 +5,8 @@
* Time: 11:39 AM
*/
package utils.validation {
-public class isEmailTest {
- public function isEmailTest() {
+public class IsEmailTest {
+ public function IsEmailTest() {
}
}
}
View
4 test/utils/validation/isNumericTest.as
@@ -5,8 +5,8 @@
* Time: 11:37 AM
*/
package utils.validation {
-public class isNumericTest {
- public function isNumericTest() {
+public class IsNumericTest {
+ public function IsNumericTest() {
}
}
}
View
4 test/utils/validation/isPOBoxTest.as
@@ -5,8 +5,8 @@
* Time: 11:35 AM
*/
package utils.validation {
-public class isPOBoxTest {
- public function isPOBoxTest() {
+public class IsPOBoxTest {
+ public function IsPOBoxTest() {
}
}
}
View
7 test/utils/validation/isUSAStateAbbreviationTest.as
@@ -6,14 +6,11 @@
*/
package utils.validation {
import org.flexunit.asserts.fail;
-import org.flexunit.flexui.patterns.AssertThatPattern;
-import org.hamcrest.assertThat;
-import org.hamcrest.object.equalTo;
-public class isUSAStateAbbreviationTest {
+public class IsUSAStateAbbreviationTest {
[Test]
- public function isUSAStateAbbreviationTest() {
+ public function IsUSAStateAbbreviationTest() {
new Array('ak', 'al', 'ar', 'az', 'ca', 'co', 'ct', 'dc', 'de', 'fl', 'ga', 'hi', 'ia', 'id', 'il', 'in', 'ks', 'ky', 'la', 'ma', 'md', 'me', 'mi', 'mn', 'mo', 'ms', 'mt', 'nb', 'nc',
'nd', 'nh', 'nj', 'nm', 'nv', 'ny', 'oh', 'ok', 'or', 'pa', 'ri', 'sc', 'sd', 'tn', 'tx', 'ut', 'va', 'vt', 'wa', 'wi', 'wv', 'wy');
View
4 test/utils/validation/isUrlTest.as
@@ -5,8 +5,8 @@
* Time: 11:29 AM
*/
package utils.validation {
-public class isUrlTest {
- public function isUrlTest() {
+public class IsUrlTest {
+ public function IsUrlTest() {
}
}
}
View
2  test/utils/validation/isValidCreditCardNumberTest.as
@@ -10,7 +10,7 @@ import org.hamcrest.object.equalTo;
import utils.validation.isValidCreditCardNumber;
-public class isValidCreditCardNumberTest {
+public class IsValidCreditCardNumberTest {
[Test]
public function ccBelowMinimum13ShouldFail() : void {
View
2  test/utils/validation/isValidExpirationDateTest.as
@@ -11,7 +11,7 @@ import org.hamcrest.object.equalTo;
import utils.validation.isValidExpirationDate;
-public class isValidExpirationDateTest {
+public class IsValidExpirationDateTest {
[Test]
public function expirationOfNextYearShouldPass() : void {
View
2  test/utils/validation/isValidPhoneNumberTest.as
@@ -11,7 +11,7 @@ import org.hamcrest.object.equalTo;
import utils.validation.isValidPhoneNumber;
-public class isValidPhoneNumberTest {
+public class IsValidPhoneNumberTest {
[Test]
public function validNumberPasses() : void {
View
2  test/utils/xml/isValidXMLTest.as
@@ -8,7 +8,7 @@ package utils.xml {
import org.hamcrest.assertThat;
import org.hamcrest.object.equalTo;
-public class isValidXMLTest {
+public class IsValidXMLTest {
[Test]
public function validXMLShouldReturnTrue() : void {

0 comments on commit 430d57d

Please sign in to comment.
Something went wrong with that request. Please try again.