From f143fc2af87a5215037d21ed699230909e8b5121 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 26 Aug 2024 20:48:37 +0200 Subject: [PATCH] wasm-gc: fix html generated for manually running JUnit test --- .../junit/WebAssemblyGCPlatformSupport.java | 4 +- .../resources/teavm-run-test-wasm-gc.html | 49 +++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 tools/junit/src/main/resources/teavm-run-test-wasm-gc.html diff --git a/tools/junit/src/main/java/org/teavm/junit/WebAssemblyGCPlatformSupport.java b/tools/junit/src/main/java/org/teavm/junit/WebAssemblyGCPlatformSupport.java index a13c9421f..0c0b19958 100644 --- a/tools/junit/src/main/java/org/teavm/junit/WebAssemblyGCPlatformSupport.java +++ b/tools/junit/src/main/java/org/teavm/junit/WebAssemblyGCPlatformSupport.java @@ -109,7 +109,7 @@ class WebAssemblyGCPlatformSupport extends TestPlatformSupport { @Override void additionalOutput(File outputPath, File outputPathForMethod, TeaVMTestConfiguration configuration, MethodReference reference) { - htmlOutput(outputPath, outputPathForMethod, configuration, reference, "teavm-run-test-wasm.html"); + htmlOutput(outputPath, outputPathForMethod, configuration, reference, "teavm-run-test-wasm-gc.html"); var testPath = getOutputFile(outputPath, "classTest", configuration.getSuffix(), getExtension() + "-runtime.js"); try { @@ -122,7 +122,7 @@ class WebAssemblyGCPlatformSupport extends TestPlatformSupport { @Override void additionalSingleTestOutput(File outputPathForMethod, TeaVMTestConfiguration configuration, MethodReference reference) { - htmlSingleTestOutput(outputPathForMethod, configuration, "teavm-run-test-wasm.html"); + htmlSingleTestOutput(outputPathForMethod, configuration, "teavm-run-test-wasm-gc.html"); var testPath = getOutputFile(outputPathForMethod, "test", configuration.getSuffix(), getExtension() + "-runtime.js"); try { diff --git a/tools/junit/src/main/resources/teavm-run-test-wasm-gc.html b/tools/junit/src/main/resources/teavm-run-test-wasm-gc.html new file mode 100644 index 000000000..13885e560 --- /dev/null +++ b/tools/junit/src/main/resources/teavm-run-test-wasm-gc.html @@ -0,0 +1,49 @@ + + + + + + TeaVM JUnit test + + + + + + + \ No newline at end of file