royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [royale-compiler] 02/03: Make first test work again
Date Tue, 19 Dec 2017 13:05:28 GMT
This is an automated email from the ASF dual-hosted git repository.

erikdebruin pushed a commit to branch feature/as2wasm
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit ac44c11055a3e6c1d6a214f8022f09214cbab4d5
Author: Erik de Bruin <erik@ixsoftware.nl>
AuthorDate: Tue Dec 19 11:59:38 2017 +0100

    Make first test work again
    
    Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>
---
 .../apache/royale/compiler/internal/codegen/wast/TestWASTClass.java   | 2 --
 .../test/java/org/apache/royale/compiler/internal/test/TestBase.java  | 4 +++-
 .../java/org/apache/royale/compiler/internal/test/WASTTestBase.java   | 2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/wast/TestWASTClass.java
b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/wast/TestWASTClass.java
index bf178e6..eab8957 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/wast/TestWASTClass.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/wast/TestWASTClass.java
@@ -21,7 +21,6 @@ package org.apache.royale.compiler.internal.codegen.wast;
 
 import org.apache.royale.compiler.internal.test.WASTTestBase;
 import org.apache.royale.compiler.tree.as.IClassNode;
-import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -31,7 +30,6 @@ import org.junit.Test;
  */
 public class TestWASTClass extends WASTTestBase {
 
-    @Ignore
     @Test
     public void testClassSimple()
     {
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
index 9e728bf..f130779 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
@@ -130,7 +130,9 @@ public class TestBase implements ITestBase
         {
         }
 
-        writer = ((IJSBackend) backend).createWriterBuffer(royaleJSProject);
+        if (backend instanceof IJSBackend) {
+          writer = ((IJSBackend) backend).createWriterBuffer(royaleJSProject);
+        }
 
         try
         {
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/WASTTestBase.java
b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/WASTTestBase.java
index 79aea78..bd7c416 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/WASTTestBase.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/WASTTestBase.java
@@ -44,6 +44,8 @@ public class WASTTestBase extends ASTestBase {
 
         super.setUp();
 
+        writer = ((IWASTBackend) backend).createWriterBuffer(royaleWASTProject);
+        
         asEmitter = backend.createEmitter(writer);
         asBlockWalker = ((IWASTBackend) backend).createWalker(royaleWASTProject, errors,
asEmitter);
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <commits@royale.apache.org>.

Mime
View raw message