diff --git a/test/de/inetsoftware/jwebassembly/runtime/AbstractBaseTest.java b/test/de/inetsoftware/jwebassembly/runtime/AbstractBaseTest.java index 18b527e..5bb0d6a 100644 --- a/test/de/inetsoftware/jwebassembly/runtime/AbstractBaseTest.java +++ b/test/de/inetsoftware/jwebassembly/runtime/AbstractBaseTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Volker Berlin (i-net software) + * Copyright 2018 - 2019 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,15 @@ public abstract class AbstractBaseTest { list.add( new Object[]{script, method, params} ); } + /** + * Get the ScriptEngine with which the test is running. + * + * @return the engine + */ + protected ScriptEngine getScriptEngine() { + return script; + } + @Test public void test() { wasm.test( script, method, params ); diff --git a/test/de/inetsoftware/jwebassembly/runtime/ControlFlowOperators.java b/test/de/inetsoftware/jwebassembly/runtime/ControlFlowOperators.java index ed3e715..93e1937 100644 --- a/test/de/inetsoftware/jwebassembly/runtime/ControlFlowOperators.java +++ b/test/de/inetsoftware/jwebassembly/runtime/ControlFlowOperators.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Volker Berlin (i-net software) + * Copyright 2018 - 2019 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,10 +15,13 @@ */ package de.inetsoftware.jwebassembly.runtime; +import static org.junit.Assume.assumeFalse; + import java.util.ArrayList; import java.util.Collection; import org.junit.ClassRule; +import org.junit.Test; import org.junit.runners.Parameterized.Parameters; import de.inetsoftware.jwebassembly.ScriptEngine; @@ -57,6 +60,12 @@ public class ControlFlowOperators extends AbstractBaseTest { return list; } + @Test + public void test() { + assumeFalse( getScriptEngine() == ScriptEngine.SpiderMonkeyWat ); // https://bugzilla.mozilla.org/show_bug.cgi?id=1545755 + super.test(); + } + static class TestClass { @Export