Enable the Array tests with the GC from the JavaScript host.

This commit is contained in:
Volker Berlin 2019-08-11 13:12:50 +02:00
parent 32e609b32f
commit 010362e7d0
2 changed files with 12 additions and 1 deletions

View File

@ -58,6 +58,14 @@ public abstract class AbstractBaseTest {
return script;
}
/**
* Get the name of the method that is currently tested
* @return the name
*/
protected String getMethod() {
return method;
}
@Test
public void test() {
wasm.test( script, method, params );

View File

@ -18,6 +18,7 @@ package de.inetsoftware.jwebassembly.runtime;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Assume;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Test;
@ -55,9 +56,11 @@ public class Arrays extends AbstractBaseTest {
return list;
}
@Ignore
@Test
@Override
public void test() {
Assume.assumeFalse( (getScriptEngine() == ScriptEngine.SpiderMonkeyWat || getScriptEngine() == ScriptEngine.SpiderMonkey)
&& "loopLong".equals( getMethod() ) ); // TODO SpiderMonkey https://bugzilla.mozilla.org/show_bug.cgi?id=1511958
super.test();
}