You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/10/04 05:53:17 UTC

[1/2] git commit: [flex-asjs] [refs/heads/develop] - leverage new -keep-code-with-metadata

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 1774068cd -> bb4a79957


leverage new -keep-code-with-metadata


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

Branch: refs/heads/develop
Commit: d50b2ea874bc7889799aef97bc39cbc6a9bfbd9f
Parents: 1774068
Author: Alex Harui <ah...@apache.org>
Authored: Mon Oct 3 22:52:36 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Oct 3 22:52:36 2016 -0700

----------------------------------------------------------------------
 manualtests/GenericTests/build.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d50b2ea8/manualtests/GenericTests/build.xml
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/build.xml b/manualtests/GenericTests/build.xml
index 092bd36..0ac8123 100644
--- a/manualtests/GenericTests/build.xml
+++ b/manualtests/GenericTests/build.xml
@@ -26,6 +26,8 @@
 
     <!-- adding flexuint style meta collection, and additional testing meta tags (Event,Bindable,TestMeta)-->
     <property name="theme_arg" value="-keep-as3-metadata+=Test,BeforeClass,AfterClass,Before,After,TestVariance,Event,Bindable,TestMeta" />
+    <!-- adding flexuint style meta collection, and additional testing meta tags (Event,Bindable,TestMeta)-->
+    <property name="extlib_arg" value="-keep-code-with-metadata=Test,BeforeClass,AfterClass,Before,After,TestVariance,TestMeta" />
     <property file="${FLEXJS_HOME}/env.properties"/>
     <property environment="env"/>
     <property file="${FLEXJS_HOME}/build.properties"/>


[2/2] git commit: [flex-asjs] [refs/heads/develop] - rewrite code to prevent dead code removal

Posted by ah...@apache.org.
rewrite code to prevent dead code removal


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

Branch: refs/heads/develop
Commit: bb4a79957be275416af0ee456b5c904576fe445d
Parents: d50b2ea
Author: Alex Harui <ah...@apache.org>
Authored: Mon Oct 3 22:53:01 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Oct 3 22:53:01 2016 -0700

----------------------------------------------------------------------
 .../src/flexUnitTests/observedbugs/ObservedBugTests.as       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bb4a7995/manualtests/GenericTests/src/flexUnitTests/observedbugs/ObservedBugTests.as
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/src/flexUnitTests/observedbugs/ObservedBugTests.as b/manualtests/GenericTests/src/flexUnitTests/observedbugs/ObservedBugTests.as
index 0a805cc..4590c7b 100644
--- a/manualtests/GenericTests/src/flexUnitTests/observedbugs/ObservedBugTests.as
+++ b/manualtests/GenericTests/src/flexUnitTests/observedbugs/ObservedBugTests.as
@@ -63,11 +63,11 @@ package flexUnitTests.observedbugs
         [Test]
         public function testTryCatchJSReleaseModeFail():void
         {
-            var js:Boolean = false;
+            var js:int = 1;
             try {
-                var check:* = getDefinitionByName("flash.system.Capabilities");
+                js = getDefinitionByName("flash.system.Capabilities") == null ? 1 : 0;
             } catch (e:Error) {
-                js = true;
+                js = 2;
             }
 			
 			//if this next reference to 'check' variable is not included, then the above try/catch code
@@ -76,7 +76,7 @@ package flexUnitTests.observedbugs
             /* if (check == null) {
                 js = true;
             }*/
-            Assert.assertTrue("Unexpected value following try/catch",(js==isJS));
+            Assert.assertTrue("Unexpected value following try/catch",(isJS ? (js == 2) : (js == 1));
 
 
         }