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 2014/08/01 13:00:28 UTC
[07/33] git commit: [flex-falcon] [refs/heads/develop] - First VF2JS
file based test.
First VF2JS file based test.
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/380b82db
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/380b82db
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/380b82db
Branch: refs/heads/develop
Commit: 380b82dbc600e760975d1e06cc050074e610a1ea
Parents: a0b6b88
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Mon Jun 30 13:23:24 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Aug 1 12:59:14 2014 +0200
----------------------------------------------------------------------
.../mxml/vf2js/TestVF2JSMXMLApplication.java | 43 ++++++++++++++++++++
1 file changed, 43 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/380b82db/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLApplication.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLApplication.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLApplication.java
new file mode 100644
index 0000000..201d05e
--- /dev/null
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLApplication.java
@@ -0,0 +1,43 @@
+/*
+ *
+ * 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 org.apache.flex.compiler.internal.codegen.mxml.vf2js;
+
+import org.apache.flex.compiler.internal.test.VF2JSTestBase;
+import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.junit.Test;
+
+public class TestVF2JSMXMLApplication extends VF2JSTestBase
+{
+
+ @Test
+ public void testSimple()
+ {
+ String fileName = "Simple";
+
+ IMXMLFileNode node = compileMXML(fileName, true,
+ "test-files/vf2js/files", false);
+
+ mxmlBlockWalker.visitFile(node);
+
+ writeResultToFile(writer.toString(), fileName);
+
+ assertOut(getCodeFromFile(fileName + "_result", true, "vf2js/files"));
+ }
+
+}