flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mschma...@apache.org
Subject svn commit: r1441517 - in /flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal: as/codegen/TestPackage.java js/codegen/goog/TestGoogPackage.java
Date Fri, 01 Feb 2013 16:37:35 GMT
Author: mschmalle
Date: Fri Feb  1 16:37:35 2013
New Revision: 1441517

URL: http://svn.apache.org/viewvc?rev=1441517&view=rev
Log:
Flex:FalconJx
- added a package test testPackage_SimpleName()

Modified:
    flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/as/codegen/TestPackage.java
    flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/js/codegen/goog/TestGoogPackage.java

Modified: flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/as/codegen/TestPackage.java
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/as/codegen/TestPackage.java?rev=1441517&r1=1441516&r2=1441517&view=diff
==============================================================================
--- flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/as/codegen/TestPackage.java
(original)
+++ flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/as/codegen/TestPackage.java
Fri Feb  1 16:37:35 2013
@@ -44,6 +44,14 @@ public class TestPackage extends TestWal
     }
 
     @Test
+    public void testPackage_SimpleName()
+    {
+        IFileNode node = getFileNode("package foo {}");
+        visitor.visitFile(node);
+        assertOut("package foo {\n}");
+    }
+    
+    @Test
     public void testPackage_Name()
     {
         IFileNode node = getFileNode("package foo.bar.baz {}");

Modified: flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/js/codegen/goog/TestGoogPackage.java
URL: http://svn.apache.org/viewvc/flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/js/codegen/goog/TestGoogPackage.java?rev=1441517&r1=1441516&r2=1441517&view=diff
==============================================================================
--- flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/js/codegen/goog/TestGoogPackage.java
(original)
+++ flex/falcon/trunk/compiler.jx.tests/src/org/apache/flex/compiler/internal/js/codegen/goog/TestGoogPackage.java
Fri Feb  1 16:37:35 2013
@@ -42,6 +42,14 @@ public class TestGoogPackage extends Tes
         assertOut("");
     }
 
+    @Test
+    public void testPackage_SimpleName()
+    {
+        IFileNode node = getFileNode("package foo {}");
+        visitor.visitFile(node);
+        assertOut("");
+    }
+
     @Override
     @Test
     public void testPackage_Name()



Mime
View raw message