flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mih...@apache.org
Subject [1/5] git commit: [flex-sdk] [refs/heads/develop] - FLEX-34625 The 'test' target of the build file expects that the name of the unit tests ends with Tests instead of Test.
Date Tue, 06 Jan 2015 17:58:11 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop 839073cb4 -> 6dadf6ddf


FLEX-34625 The 'test' target of the build file expects that the name of the unit tests ends
with Tests instead of Test.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/f42954cb
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/f42954cb
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/f42954cb

Branch: refs/heads/develop
Commit: f42954cbd305e782ddddac99581e26628bbdfa6b
Parents: 839073c
Author: Mihai Chira <mihaic@apache.org>
Authored: Tue Jan 6 17:33:26 2015 +0000
Committer: Mihai Chira <mihaic@apache.org>
Committed: Tue Jan 6 17:33:26 2015 +0000

----------------------------------------------------------------------
 .../spark/skins/spark/FLEX_34625_Test.as        | 90 --------------------
 .../spark/skins/spark/FLEX_34625_Tests.as       | 90 ++++++++++++++++++++
 2 files changed, 90 insertions(+), 90 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f42954cb/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as
----------------------------------------------------------------------
diff --git a/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as b/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as
deleted file mode 100644
index f3602a7..0000000
--- a/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Test.as
+++ /dev/null
@@ -1,90 +0,0 @@
-package {
-    import flash.events.Event;
-    import flash.events.EventDispatcher;
-
-    import mx.managers.FocusManager;
-    import mx.managers.IFocusManagerContainer;
-
-    import org.flexunit.asserts.assertTrue;
-    import org.flexunit.async.Async;
-    import org.fluint.uiImpersonation.UIImpersonator;
-
-    import spark.components.TextInput;
-
-    public class FLEX_34625_Test {
-
-        private static const NO_ENTER_FRAMES_TO_ALLOW:int = 4;
-        private var noEnterFramesRemaining:int = NaN;
-        private var _finishNotifier:EventDispatcher;
-        private var _textInput:TextInput;
-
-        [Before]
-        public function setUp():void
-        {
-            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as
IFocusManagerContainer);
-            focusManager.showFocusIndicator = true;
-
-            _textInput = new TextInput();
-            _textInput.width = 0;
-            _textInput.height = 0;
-            _textInput.focusManager = focusManager;
-
-            _finishNotifier = new EventDispatcher();
-        }
-
-        [After]
-        public function tearDown():void
-        {
-            _textInput = null;
-            _finishNotifier = null;
-        }
-
-        [Test(async, timeout=500)]
-        public function test_focus_skin_with_zero_focus_thickness():void
-        {
-            //given
-            UIImpersonator.addChild(_textInput);
-
-            //when
-            _textInput.setStyle("focusThickness", 0);
-            _textInput.setFocus();
-
-            //then wait for the focus skin to show
-            noEnterFramesRemaining = NO_ENTER_FRAMES_TO_ALLOW;
-            UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, onEnterFrame);
-            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, onTestComplete);
-        }
-
-        [Test(async, timeout=500)]
-        public function test_focus_skin_with_NaN_focus_thickness():void
-        {
-            //given
-            UIImpersonator.addChild(_textInput);
-
-            //when
-            _textInput.setStyle("focusThickness", NaN);
-            _textInput.setFocus();
-
-            //then wait for the focus skin to show
-            noEnterFramesRemaining = NO_ENTER_FRAMES_TO_ALLOW;
-            UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, onEnterFrame);
-            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, onTestComplete);
-        }
-
-        private function onEnterFrame(event:Event):void
-        {
-            if(!--noEnterFramesRemaining)
-            {
-                UIImpersonator.testDisplay.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
-
-                _finishNotifier.dispatchEvent(new Event(Event.COMPLETE));
-            }
-        }
-
-        private static function onTestComplete(event:Event, passThroughData:Object):void
-        {
-            //if we get here it means no error has been thrown
-            assertTrue(true);
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f42954cb/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Tests.as
----------------------------------------------------------------------
diff --git a/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Tests.as b/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Tests.as
new file mode 100644
index 0000000..57c6a56
--- /dev/null
+++ b/frameworks/tests/unitTests/spark/skins/spark/FLEX_34625_Tests.as
@@ -0,0 +1,90 @@
+package spark.skins.spark {
+    import flash.events.Event;
+    import flash.events.EventDispatcher;
+
+    import mx.managers.FocusManager;
+    import mx.managers.IFocusManagerContainer;
+
+    import org.flexunit.asserts.assertTrue;
+    import org.flexunit.async.Async;
+    import org.fluint.uiImpersonation.UIImpersonator;
+
+    import spark.components.TextInput;
+
+    public class FLEX_34625_Tests {
+
+        private static const NO_ENTER_FRAMES_TO_ALLOW:int = 4;
+        private var noEnterFramesRemaining:int = NaN;
+        private var _finishNotifier:EventDispatcher;
+        private var _textInput:TextInput;
+
+        [Before]
+        public function setUp():void
+        {
+            var focusManager:FocusManager = new FocusManager(UIImpersonator.testDisplay as
IFocusManagerContainer);
+            focusManager.showFocusIndicator = true;
+
+            _textInput = new TextInput();
+            _textInput.width = 0;
+            _textInput.height = 0;
+            _textInput.focusManager = focusManager;
+
+            _finishNotifier = new EventDispatcher();
+        }
+
+        [After]
+        public function tearDown():void
+        {
+            _textInput = null;
+            _finishNotifier = null;
+        }
+
+        [Test(async, timeout=500)]
+        public function test_focus_skin_with_zero_focus_thickness():void
+        {
+            //given
+            UIImpersonator.addChild(_textInput);
+
+            //when
+            _textInput.setStyle("focusThickness", 0);
+            _textInput.setFocus();
+
+            //then wait for the focus skin to show
+            noEnterFramesRemaining = NO_ENTER_FRAMES_TO_ALLOW;
+            UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, onEnterFrame);
+            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, onTestComplete);
+        }
+
+        [Test(async, timeout=500)]
+        public function test_focus_skin_with_NaN_focus_thickness():void
+        {
+            //given
+            UIImpersonator.addChild(_textInput);
+
+            //when
+            _textInput.setStyle("focusThickness", NaN);
+            _textInput.setFocus();
+
+            //then wait for the focus skin to show
+            noEnterFramesRemaining = NO_ENTER_FRAMES_TO_ALLOW;
+            UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, onEnterFrame);
+            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, onTestComplete);
+        }
+
+        private function onEnterFrame(event:Event):void
+        {
+            if(!--noEnterFramesRemaining)
+            {
+                UIImpersonator.testDisplay.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
+
+                _finishNotifier.dispatchEvent(new Event(Event.COMPLETE));
+            }
+        }
+
+        private static function onTestComplete(event:Event, passThroughData:Object):void
+        {
+            //if we get here it means no error has been thrown
+            assertTrue(true);
+        }
+    }
+}


Mime
View raw message