You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2014/07/10 18:04:49 UTC
[11/26] git commit: [flex-falcon] [refs/heads/experimental/VF2JS] -
Add test class specifically for attribute tests.
Add test class specifically for attribute tests.
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/b06dc88c
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/b06dc88c
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/b06dc88c
Branch: refs/heads/experimental/VF2JS
Commit: b06dc88c61d65a9fe98a7ade5f21d415cda51f89
Parents: d5a2020
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Mon Jun 30 12:08:52 2014 +0200
Committer: Jose Barragan <jo...@apache.org>
Committed: Thu Jul 10 18:03:29 2014 +0200
----------------------------------------------------------------------
.../mxml/vf2js/TestVF2JSMXMLAttributes.java | 42 ++++++++++++++++++++
1 file changed, 42 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b06dc88c/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLAttributes.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLAttributes.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLAttributes.java
new file mode 100644
index 0000000..9568d1e
--- /dev/null
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/TestVF2JSMXMLAttributes.java
@@ -0,0 +1,42 @@
+/*
+ *
+ * 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.MXMLTestBase;
+import org.apache.flex.compiler.internal.test.VF2JSTestBase;
+import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
+import org.junit.Test;
+
+public class TestVF2JSMXMLAttributes extends VF2JSTestBase
+{
+
+ @Test
+ public void testVF2JSAttribute()
+ {
+ String code = "label=\"hello\"";
+
+ IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
+ code, IMXMLPropertySpecifierNode.class,
+ MXMLTestBase.WRAP_LEVEL_NODE);
+
+ mxmlBlockWalker.visitPropertySpecifier(node);
+
+ assertOut("label=\"hello\"");
+ }
+}