incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gordonsm...@apache.org
Subject svn commit: r1418566 - /incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
Date Sat, 08 Dec 2012 00:28:22 GMT
Author: gordonsmith
Date: Sat Dec  8 00:28:21 2012
New Revision: 1418566

URL: http://svn.apache.org/viewvc?rev=1418566&view=rev
Log:
Added basic feature tests for the <XML> tag.

None of them currently pass. :(

Added:
    incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
  (with props)

Added: incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java?rev=1418566&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
(added)
+++ incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
Sat Dec  8 00:28:21 2012
@@ -0,0 +1,87 @@
+/*
+ *
+ *  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 mxml.tags;
+
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ * Feature tests for the MXML <XML> tag.
+ * 
+ * @author Gordon Smith
+ */
+public class MXMLXMLTagTests extends MXMLInstanceTagTestsBase
+{
+	@Ignore
+    @Test
+    public void MXMLXMLTag_empty()
+    {
+        String[] declarations = new String[]
+        {
+            "<fx:XML id='x1'>",
+            "</fx:XML>"
+        };
+        String[] asserts = new String[]
+        {
+            "assertEqual('x1 is ObjectProxy', x1, null);",
+        };
+        String mxml = getMXML(declarations, asserts);
+        compileAndRun(mxml);
+    }
+	
+	@Ignore
+    @Test
+    public void MXMLXMLTag_emptyRootTag()
+    {
+        String[] declarations = new String[]
+        {
+            "<fx:XML id='x1' xmlns=''>",
+            "    <root/>",
+            "</fx:XML>"
+        };
+        String[] asserts = new String[]
+        {
+            "assertEqual('x1 is XML', x1 is XML, true);",
+        };
+        String mxml = getMXML(declarations, asserts);
+        compileAndRun(mxml);
+    }
+	
+	@Ignore
+    @Test
+    public void MXMLXMLTag_oneTagWithText()
+    {
+        String[] declarations = new String[]
+        {
+            "<fx:XML id='x1' xmlns=''>",
+            "    <root>",
+            "        <a>abc</a>>",
+            "    </root>",
+            "</fx:XML>"
+        };
+        String[] asserts = new String[]
+        {
+            "assertEqual('x1 is XML', x1 is XML, true);",
+            "assertEqual('x1.a', x1.a, 'abc');",
+        };
+        String mxml = getMXML(declarations, asserts);
+        compileAndRun(mxml);
+    }
+}

Propchange: incubator/flex/falcon/trunk/compiler.tests/feature-tests/mxml/tags/MXMLXMLTagTests.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message