junit: fix generation of html page for single-test JS runner

This commit is contained in:
Alexey Andreev 2023-10-12 21:13:48 +02:00
parent 772dd9eded
commit 55d3adb7ae

View File

@ -170,7 +170,7 @@ abstract class TestPlatformSupport<T extends TeaVMTarget> {
protected final void htmlSingleTestOutput(File outputPathForMethod, TeaVMTestConfiguration<?> configuration, protected final void htmlSingleTestOutput(File outputPathForMethod, TeaVMTestConfiguration<?> configuration,
String template) { String template) {
File testPath = getOutputFile(outputPathForMethod, "test", configuration.getSuffix(), ".wasm"); File testPath = getOutputFile(outputPathForMethod, "test", configuration.getSuffix(), getExtension());
File htmlPath = getOutputFile(outputPathForMethod, "test", configuration.getSuffix(), ".html"); File htmlPath = getOutputFile(outputPathForMethod, "test", configuration.getSuffix(), ".html");
var properties = Map.of( var properties = Map.of(
"SCRIPT", testPath.getName(), "SCRIPT", testPath.getName(),