You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by mi...@apache.org on 2015/01/21 17:27:53 UTC
[1/3] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34717
the build script expects the test files to end in 'Tests'.
Repository: flex-utilities
Updated Branches:
refs/heads/develop 7a774d9e7 -> 0649b1036
FLEX-34717 the build script expects the test files to end in 'Tests'.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/70ce8fd7
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/70ce8fd7
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/70ce8fd7
Branch: refs/heads/develop
Commit: 70ce8fd735e0fc242a4142b715e5d30e4ead2f14
Parents: 7a774d9
Author: Mihai Chira <mi...@apache.org>
Authored: Wed Jan 21 12:23:49 2015 +0000
Committer: Mihai Chira <mi...@apache.org>
Committed: Wed Jan 21 12:26:37 2015 +0000
----------------------------------------------------------------------
.../linguistics/spelling/FLEX_34717_Test.as | 57 --------------------
.../linguistics/spelling/FLEX_34717_Tests.as | 57 ++++++++++++++++++++
.../linguistics/spelling/FLEX_34717_Test.as | 57 --------------------
.../linguistics/spelling/FLEX_34717_Tests.as | 57 ++++++++++++++++++++
4 files changed, 114 insertions(+), 114 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/70ce8fd7/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as b/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
deleted file mode 100644
index 1c45837..0000000
--- a/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
+++ /dev/null
@@ -1,57 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling {
- import com.adobe.linguistics.spelling.SpellUI;
-
- import mx.controls.TextArea;
-
- import org.flexunit.asserts.assertTrue;
- import org.fluint.uiImpersonation.UIImpersonator;
-
- public class FLEX_34717_Test {
- private var _input:TextArea;
-
- [Before]
- public function setUp():void
- {
- _input = new TextArea();
- }
-
- [After]
- public function tearDown():void
- {
- _input = null;
- }
-
- [Test]
- public function test_immediate_disable_after_enable():void
- {
- //given
- UIImpersonator.addChild(_input);
-
- //when
- SpellUI.enableSpelling(_input, "en_US");
- SpellUI.disableSpelling(_input);
-
- //then
- assertTrue("If the unit test reaches this point, it means no RTE was thrown, which means the bug is not present", true);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/70ce8fd7/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as b/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
new file mode 100644
index 0000000..624acae
--- /dev/null
+++ b/Squiggly/main/SpellingUI/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package com.adobe.linguistics.spelling {
+ import com.adobe.linguistics.spelling.SpellUI;
+
+ import mx.controls.TextArea;
+
+ import org.flexunit.asserts.assertTrue;
+ import org.fluint.uiImpersonation.UIImpersonator;
+
+ public class FLEX_34717_Tests {
+ private var _input:TextArea;
+
+ [Before]
+ public function setUp():void
+ {
+ _input = new TextArea();
+ }
+
+ [After]
+ public function tearDown():void
+ {
+ _input = null;
+ }
+
+ [Test]
+ public function test_immediate_disable_after_enable():void
+ {
+ //given
+ UIImpersonator.addChild(_input);
+
+ //when
+ SpellUI.enableSpelling(_input, "en_US");
+ SpellUI.disableSpelling(_input);
+
+ //then
+ assertTrue("If the unit test reaches this point, it means no RTE was thrown, which means the bug is not present", true);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/70ce8fd7/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as b/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
deleted file mode 100644
index 1c45837..0000000
--- a/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Test.as
+++ /dev/null
@@ -1,57 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling {
- import com.adobe.linguistics.spelling.SpellUI;
-
- import mx.controls.TextArea;
-
- import org.flexunit.asserts.assertTrue;
- import org.fluint.uiImpersonation.UIImpersonator;
-
- public class FLEX_34717_Test {
- private var _input:TextArea;
-
- [Before]
- public function setUp():void
- {
- _input = new TextArea();
- }
-
- [After]
- public function tearDown():void
- {
- _input = null;
- }
-
- [Test]
- public function test_immediate_disable_after_enable():void
- {
- //given
- UIImpersonator.addChild(_input);
-
- //when
- SpellUI.enableSpelling(_input, "en_US");
- SpellUI.disableSpelling(_input);
-
- //then
- assertTrue("If the unit test reaches this point, it means no RTE was thrown, which means the bug is not present", true);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/70ce8fd7/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as b/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
new file mode 100644
index 0000000..624acae
--- /dev/null
+++ b/Squiggly/main/SpellingUIEx/tests/com/adobe/linguistics/spelling/FLEX_34717_Tests.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package com.adobe.linguistics.spelling {
+ import com.adobe.linguistics.spelling.SpellUI;
+
+ import mx.controls.TextArea;
+
+ import org.flexunit.asserts.assertTrue;
+ import org.fluint.uiImpersonation.UIImpersonator;
+
+ public class FLEX_34717_Tests {
+ private var _input:TextArea;
+
+ [Before]
+ public function setUp():void
+ {
+ _input = new TextArea();
+ }
+
+ [After]
+ public function tearDown():void
+ {
+ _input = null;
+ }
+
+ [Test]
+ public function test_immediate_disable_after_enable():void
+ {
+ //given
+ UIImpersonator.addChild(_input);
+
+ //when
+ SpellUI.enableSpelling(_input, "en_US");
+ SpellUI.disableSpelling(_input);
+
+ //then
+ assertTrue("If the unit test reaches this point, it means no RTE was thrown, which means the bug is not present", true);
+ }
+ }
+}
[2/3] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34721
Set up the build files to call flexunit-tests.xml from the SDK root in order
to run the unit tests. Note that for now we're only running the tests in
SpellingUIEx.
Posted by mi...@apache.org.
FLEX-34721 Set up the build files to call flexunit-tests.xml from the SDK root in order to run the unit tests. Note that for now we're only running the tests in SpellingUIEx.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/7f12309a
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/7f12309a
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/7f12309a
Branch: refs/heads/develop
Commit: 7f12309ac6cff4af7b608ac67da22e66a781133c
Parents: 70ce8fd
Author: Mihai Chira <mi...@apache.org>
Authored: Wed Jan 21 16:04:05 2015 +0000
Committer: Mihai Chira <mi...@apache.org>
Committed: Wed Jan 21 16:04:05 2015 +0000
----------------------------------------------------------------------
Squiggly/build.xml | 4 ++++
Squiggly/main/build.xml | 10 ++++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/7f12309a/Squiggly/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/build.xml b/Squiggly/build.xml
index 18de5cc..90d225a 100644
--- a/Squiggly/build.xml
+++ b/Squiggly/build.xml
@@ -225,4 +225,8 @@
</delete>
<delete dir="${basedir}/out"/>
</target>
+
+ <target name="test" description="Runs the FlexUnit tests for this project">
+ <ant dir="main" target="unit-tests" />
+ </target>
</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/7f12309a/Squiggly/main/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/build.xml b/Squiggly/main/build.xml
index e271ee3..98c94fb 100644
--- a/Squiggly/main/build.xml
+++ b/Squiggly/main/build.xml
@@ -274,10 +274,16 @@
</java>
</target>
- <target name="test" depends="compilelinguistics, compileengine, compileframework, compileui, compileuiapi, compileuitlf, compileuiex, extract-rsls">
- </target>
+ <target name="test" depends="compilelinguistics, compileengine, compileframework, compileui, compileuiapi, compileuitlf, compileuiex, extract-rsls"/>
<target name="clean" description="clean up">
<delete dir="${OUTPUT_DIR}"/>
</target>
+
+ <target name="unit-tests" description="Runs the FlexUnit tests for this project">
+ <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
+ <property name="project.root" value="${basedir}/SpellingUIEx"/>
+ <property name="project.libs" value="${basedir}/libs"/>
+ </ant>
+ </target>
</project>
[3/3] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34721
Made the Squiggly test running extensible - now when you write unit tests for
other sub-projects, such as SpellingEngine,
you can run them by adding a new line in the 'unit-tests' targe
Posted by mi...@apache.org.
FLEX-34721 Made the Squiggly test running extensible - now when you write unit tests for other sub-projects, such as SpellingEngine, you can run them by adding a new line in the 'unit-tests' target of Squiggly/main/build.xml, on the model of the ones already there. Then you add a build.xml file in the sub-project you're testing, which includes a target called 'unit-tests' and is the same as the one in Squiggly/main/SpellingUIEx/build.xml.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/0649b103
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/0649b103
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/0649b103
Branch: refs/heads/develop
Commit: 0649b1036383d458021d6af22cf7f18d9d9c70a7
Parents: 7f12309
Author: Mihai Chira <mi...@apache.org>
Authored: Wed Jan 21 16:27:28 2015 +0000
Committer: Mihai Chira <mi...@apache.org>
Committed: Wed Jan 21 16:27:28 2015 +0000
----------------------------------------------------------------------
Squiggly/main/SpellingUI/build.xml | 27 +++++++++++++++++++++++++++
Squiggly/main/SpellingUIEx/build.xml | 27 +++++++++++++++++++++++++++
Squiggly/main/build.xml | 6 ++----
3 files changed, 56 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/SpellingUI/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/build.xml b/Squiggly/main/SpellingUI/build.xml
new file mode 100644
index 0000000..2ac36a1
--- /dev/null
+++ b/Squiggly/main/SpellingUI/build.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project default="unit-tests" basedir=".">
+ <target name="unit-tests" description="Runs the FlexUnit tests for this project">
+ <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
+ <property name="project.root" value="${basedir}"/>
+ <property name="project.libs" value="${basedir}/../libs"/>
+ </ant>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/SpellingUIEx/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/build.xml b/Squiggly/main/SpellingUIEx/build.xml
new file mode 100644
index 0000000..2ac36a1
--- /dev/null
+++ b/Squiggly/main/SpellingUIEx/build.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project default="unit-tests" basedir=".">
+ <target name="unit-tests" description="Runs the FlexUnit tests for this project">
+ <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
+ <property name="project.root" value="${basedir}"/>
+ <property name="project.libs" value="${basedir}/../libs"/>
+ </ant>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/build.xml b/Squiggly/main/build.xml
index 98c94fb..d0be172 100644
--- a/Squiggly/main/build.xml
+++ b/Squiggly/main/build.xml
@@ -281,9 +281,7 @@
</target>
<target name="unit-tests" description="Runs the FlexUnit tests for this project">
- <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
- <property name="project.root" value="${basedir}/SpellingUIEx"/>
- <property name="project.libs" value="${basedir}/libs"/>
- </ant>
+ <ant dir="SpellingUIEx" target="unit-tests" />
+ <ant dir="SpellingUI" target="unit-tests" />
</target>
</project>