flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [6/6] git commit: [flex-falcon] [refs/heads/develop] - fix test
Date Fri, 16 Oct 2015 23:33:48 GMT
fix test


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

Branch: refs/heads/develop
Commit: ad1c5f09860113b92a45d678be50816acfd56b19
Parents: 9a0f656
Author: Alex Harui <aharui@apache.org>
Authored: Fri Oct 16 16:35:13 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 16 16:35:13 2015 -0700

----------------------------------------------------------------------
 .../internal/codegen/externals/ExternalsTestUtils.java        | 4 ++++
 .../internal/codegen/externals/TestExternalsJSCompile.java    | 7 +++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad1c5f09/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
index b6989bc..a601eea 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
@@ -34,6 +34,10 @@ public class ExternalsTestUtils
     public static File MISSING_JS_FILE = FilenameNormalization.normalize(new File(
             "../externs/js/missing.js"));
 
+    // XXX AS3.as is a namespace needed to override toString in some classes
+    public static File AS3_NAMESPACE_FILE = FilenameNormalization.normalize(new File(
+            "../externs/js/src/AS3.as"));
+
     public static File EXTERNAL_JS_DIR = FilenameNormalization.normalize(new File(
             "../externs/js/externs"));
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad1c5f09/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternalsJSCompile.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternalsJSCompile.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternalsJSCompile.java
index 93ed5e2..3d12ad1 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternalsJSCompile.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/TestExternalsJSCompile.java
@@ -135,6 +135,13 @@ public class TestExternalsJSCompile
         CompilerArguments arguments = new CompilerArguments();
         configureCOMPCCompiler(arguments);
 
+        File destAS3File = new File(config.getAsClassRoot().getAbsolutePath() + File.separator
+ "AS3.as");
+        try {
+			FileUtils.copyFile(ExternalsTestUtils.AS3_NAMESPACE_FILE, destAS3File);
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
         COMPC compc = new COMPC();
 
         final String[] args = arguments.toArguments().toArray(new String[] {});


Mime
View raw message