From 0d194faa71840a4cea57ec6863dbdeac0a4632dd Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Tue, 27 Aug 2024 09:37:43 +0700 Subject: [PATCH] refactor(web): fix tests --- web/src/engine/osk/gesture-processor/build.sh | 2 +- ...spatchQueue.spec.ts => asyncClosureDispatchQueue.tests.ts} | 0 .../{gesturePath.spec.ts => gesturePath.tests.ts} | 4 ++-- .../{gestureSource.spec.ts => gestureSource.tests.ts} | 0 .../{gestureMatcher.spec.ts => gestureMatcher.tests.ts} | 0 .../{gestureModelDefs.spec.ts => gestureModelDefs.tests.ts} | 0 .../{gestureSequence.spec.ts => gestureSequence.tests.ts} | 0 .../{matcherSelector.spec.ts => matcherSelector.tests.ts} | 0 .../gestures/{pathMatcher.spec.ts => pathMatcher.tests.ts} | 0 ...ointCoordinator.spec.ts => touchpointCoordinator.tests.ts} | 0 .../{pathStats.spec.ts => pathStats.tests.ts} | 0 11 files changed, 3 insertions(+), 3 deletions(-) rename web/src/test/auto/headless/engine/osk/gesture-processor/{asyncClosureDispatchQueue.spec.ts => asyncClosureDispatchQueue.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/{gesturePath.spec.ts => gesturePath.tests.ts} (98%) rename web/src/test/auto/headless/engine/osk/gesture-processor/{gestureSource.spec.ts => gestureSource.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{gestureMatcher.spec.ts => gestureMatcher.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{gestureModelDefs.spec.ts => gestureModelDefs.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{gestureSequence.spec.ts => gestureSequence.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{matcherSelector.spec.ts => matcherSelector.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{pathMatcher.spec.ts => pathMatcher.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/gestures/{touchpointCoordinator.spec.ts => touchpointCoordinator.tests.ts} (100%) rename web/src/test/auto/headless/engine/osk/gesture-processor/{pathStats.spec.ts => pathStats.tests.ts} (100%) diff --git a/web/src/engine/osk/gesture-processor/build.sh b/web/src/engine/osk/gesture-processor/build.sh index f3bafab5ed5..b2ea635d8a7 100755 --- a/web/src/engine/osk/gesture-processor/build.sh +++ b/web/src/engine/osk/gesture-processor/build.sh @@ -61,5 +61,5 @@ builder_run_action configure do_configure builder_run_action clean rm -rf build/ intermediate/ builder_run_action build:module do_build_module builder_run_action build:tools src/tools/build.sh build -builder_run_action test:module test-headless "${SUBPROJECT_NAME}" +builder_run_action test:module test-headless-typescript "${SUBPROJECT_NAME}" builder_run_action test:tools do_test_tools diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts similarity index 98% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts index 1159d969fad..0a90b0c6289 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.spec.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts @@ -11,8 +11,8 @@ import { TouchpathTurtle } from '#gesture-tools'; // Ensures that the resources are resolved relative to this script's source, not // to the cwd when the test runner was launched or to its built version. const scriptFolder = path.dirname(url.fileURLToPath(import.meta.url)) - .replace("build/test/auto", "src/test/auto") // Mac/Linux - .replace("build\\test\\auto", "src\\test\\auto"); // Windows + .replace("build/test", "src/test/auto") // Mac/Linux + .replace("build\\test", "src\\test\\auto"); // Windows const SEGMENT_TEST_JSON_FOLDER = path.resolve(`${scriptFolder}/../../../../resources/json/segmentation`); describe("GesturePath", function() { diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.spec.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts similarity index 100% rename from web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.spec.ts rename to web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts