You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/11/01 12:33:19 UTC

[06/10] git commit: [flex-falcon] [refs/heads/develop] - The test implementation of the project compilation method didn't assign a value to the 'mainCU' property of 'FlexJSProject'.

The test implementation of the project compilation method didn't assign a value to the 'mainCU' property of 'FlexJSProject'.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: d68c56541e3b3286920106fe9b396170b4fe446d
Parents: c61fbb1
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Nov 1 09:48:38 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Nov 1 12:32:58 2013 +0100

----------------------------------------------------------------------
 .../src/org/apache/flex/compiler/internal/test/TestBase.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d68c5654/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
index ccc2632..6a6c3a8 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
@@ -42,6 +42,7 @@ import org.apache.flex.compiler.codegen.mxml.IMXMLEmitter;
 import org.apache.flex.compiler.config.Configurator;
 import org.apache.flex.compiler.driver.IBackend;
 import org.apache.flex.compiler.internal.codegen.as.ASFilterWriter;
+import org.apache.flex.compiler.internal.projects.FlexJSProject;
 import org.apache.flex.compiler.internal.projects.FlexProject;
 import org.apache.flex.compiler.internal.projects.FlexProjectConfigurator;
 import org.apache.flex.compiler.internal.projects.ISourceFileHandler;
@@ -223,7 +224,10 @@ public class TestBase implements ITestBase
         ICompilationUnit mainCU = Iterables
                 .getOnlyElement(workspace.getCompilationUnits(
                         FilenameNormalization.normalize(mainFileName), project));
-
+        
+        if (project instanceof FlexJSProject)
+            ((FlexJSProject) project).mainCU = mainCU;
+        
         Configurator projectConfigurator = backend.createConfigurator();
 
         JSTarget target = (JSTarget) backend.createTarget(project,