From e4830fb63785e091bfe19ba1fc03364838a916a2 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Sat, 17 Oct 2026 18:53:59 +0200 Subject: [PATCH] chore(web): add Keyman header to test files Add missing headers mainly to test files. Build-bot: skip Test-bot: skip --- .../predictive-text/wordbreakers/src/main/placeholder.ts | 3 +++ .../worker-main/unit_tests/headless/promise-store.tests.js | 3 +++ .../unit_tests/headless/top-level-lmlayer.tests.js | 3 +++ .../unit_tests/headless/worker-dummy-integration.tests.js | 3 +++ .../unit_tests/headless/worker-trie-integration.tests.js | 3 +++ .../unit_tests/in_browser/cases/top-level-lmlayer.tests.ts | 3 +++ .../in_browser/cases/worker-dummy-integration.tests.ts | 3 +++ .../in_browser/cases/worker-trie-integration.tests.ts | 3 +++ .../worker-main/unit_tests/in_browser/helpers.mjs | 5 ++++- .../worker-thread/src/main/correction/execution-timer.ts | 3 +++ .../src/tests/test-runner/cases/worker.tests.ts | 3 +++ .../dom/cases/attachment/pageContextAttachment.tests.ts | 5 ++++- web/src/test/auto/dom/cases/browser/contextManager.tests.ts | 3 +++ .../test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts | 5 ++++- .../cases/element-text-stores/element_interfaces.tests.ts | 5 ++++- .../cases/element-text-stores/syntheticTextStore.tests.ts | 5 ++++- .../test/auto/dom/cases/gesture-processor/canary.tests.ts | 5 ++++- .../auto/dom/cases/gesture-processor/ignoredInputs.tests.ts | 5 ++++- .../cases/gesture-processor/recordedCoordSequences.tests.ts | 5 ++++- .../auto/dom/cases/keyboard-storage/cloudQueries.tests.ts | 5 ++++- .../dom/cases/keyboard-storage/domCloudRequester.tests.ts | 5 ++++- .../cases/keyboard-storage/keyboardRequisitioner.tests.ts | 5 ++++- .../test/auto/dom/cases/keyboard/domKeyboardLoader.tests.ts | 3 +++ web/src/test/auto/dom/cases/osk/activation.tests.ts | 5 ++++- web/src/test/auto/dom/cases/osk/events.tests.ts | 5 ++++- web/src/test/auto/dom/init_check.tests.ts | 5 ++++- web/src/test/auto/dom/kbdLoader.ts | 5 ++++- web/src/test/auto/dom/test_utils.ts | 3 +++ .../headless/app/browser/hardware-event-processing.tests.ts | 5 ++++- .../engine/attachment/pageContextAttachment.tests.ts | 3 +++ .../auto/headless/engine/events/emitterListenerSpy.tests.js | 5 ++++- .../auto/headless/engine/events/legacyEventEmitter.tests.js | 5 ++++- .../headless/engine/interfaces/pathConfiguration.tests.ts | 5 ++++- .../engine/interfaces/prediction/predictionContext.tests.ts | 3 +++ .../auto/headless/engine/js-processor/basic-init.tests.js | 3 +++ .../headless/engine/js-processor/bundled-module.tests.js | 3 +++ .../headless/engine/js-processor/engine/context.tests.js | 5 ++++- .../engine/js-processor/engine/notany_context.tests.js | 5 ++++- .../headless/engine/js-processor/engine/stores.tests.js | 5 ++++- .../auto/headless/engine/js-processor/kbdInterface.tests.ts | 3 +++ .../engine/js-processor/non-positional-rules.tests.js | 3 +++ .../engine/js-processor/specialized-backspace.tests.ts | 3 +++ .../headless/engine/js-processor/transcriptions.tests.js | 5 ++++- .../engine/keyboard-storage/stubAndKeyboardCache.tests.js | 5 ++++- .../test/auto/headless/engine/keyboard/jskeyboard.tests.ts | 3 +++ .../auto/headless/engine/keyboard/keyboard-loading.tests.js | 3 +++ .../headless/engine/keyboard/keyboard-properties.tests.js | 5 ++++- .../headless/engine/keyboard/keyboardLoaderBase.tests.ts | 3 +++ .../headless/engine/keyboard/syntheticTextStore.tests.js | 5 ++++- .../test/auto/headless/engine/main/inputProcessor.tests.ts | 3 +++ web/src/test/auto/headless/engine/osk/activation.tests.ts | 5 ++++- .../gesture-processor/asyncClosureDispatchQueue.tests.ts | 5 ++++- .../engine/osk/gesture-processor/gesturePath.tests.ts | 5 ++++- .../engine/osk/gesture-processor/gestureSource.tests.ts | 5 ++++- .../osk/gesture-processor/gestures/gestureMatcher.tests.ts | 5 ++++- .../gesture-processor/gestures/gestureModelDefs.tests.ts | 5 ++++- .../osk/gesture-processor/gestures/gestureSequence.tests.ts | 5 ++++- .../osk/gesture-processor/gestures/matcherSelector.tests.ts | 5 ++++- .../osk/gesture-processor/gestures/pathMatcher.tests.ts | 5 ++++- .../gestures/touchpointCoordinator.tests.ts | 5 ++++- .../engine/osk/gesture-processor/pathStats.tests.ts | 5 ++++- .../engine/osk/input/gestures/browser/subkeyPopup.tests.ts | 3 +++ .../engine/predictive-text/templates/common.tests.ts | 2 ++ .../engine/predictive-text/templates/custom-breakers.def.ts | 6 ++++-- .../headless/engine/predictive-text/templates/helpers.ts | 3 +++ .../predictive-text/templates/quote-behavior.tests.ts | 2 ++ .../engine/predictive-text/templates/tokenization.tests.ts | 2 ++ .../engine/predictive-text/templates/trie-model.tests.ts | 2 ++ .../predictive-text/templates/trie-traversal.tests.ts | 2 ++ .../wordbreakers/ascii-word-breaker.tests.ts | 3 +++ .../wordbreakers/default-word-breaker.tests.ts | 4 +++- .../wordbreakers/placeholder-word-breaker.tests.ts | 3 +++ .../predictive-text/wordbreakers/search-property.tests.ts | 4 +++- .../correction-search/classical-calculation.tests.ts | 3 +++ .../early-correction-search-stopping.tests.ts | 5 ++++- .../correction-search/execution-timer.tests.ts | 5 ++++- .../correction-search/segmentable-calculation.tests.ts | 5 ++++- .../worker-thread/prediction-helpers/auto-correct.tests.ts | 5 ++++- .../prediction-helpers/base-context-state.tests.ts | 5 ++++- .../prediction-helpers/casing-detection.tests.ts | 5 ++++- .../determine-suggestion-alignment.tests.ts | 5 ++++- .../determine-suggestion-context-transition.tests.ts | 5 ++++- .../prediction-helpers/predict-from-corrections.tests.ts | 3 +++ .../prediction-helpers/suggestion-deduplication.tests.ts | 5 ++++- .../prediction-helpers/suggestion-finalization.tests.ts | 3 +++ .../prediction-helpers/suggestion-similarity.tests.ts | 5 ++++- .../predictive-text/worker-thread/transform-utils.tests.ts | 3 +++ .../worker-thread/worker-custom-punctuation.tests.ts | 2 ++ .../worker-thread/worker-initialization.tests.ts | 3 +++ .../worker-thread/worker-model-compositor.tests.ts | 2 ++ .../worker-thread/worker-predict-dummy.tests.ts | 2 ++ .../predictive-text/worker-thread/worker-predict.tests.ts | 3 +++ web/src/test/auto/integrated/cases/basics.tests.ts | 5 ++++- web/src/test/auto/integrated/cases/engine.tests.ts | 5 ++++- .../test/auto/integrated/cases/engine_chirality.tests.ts | 5 ++++- web/src/test/auto/integrated/cases/events.tests.ts | 5 ++++- web/src/test/auto/integrated/cases/text_selection.tests.ts | 3 +++ web/src/test/auto/integrated/init_check.tests.ts | 5 ++++- web/src/test/auto/integrated/test_utils.ts | 5 ++++- web/src/test/auto/resources/simulateMultiSourceInput.ts | 5 ++++- 100 files changed, 347 insertions(+), 58 deletions(-) diff --git a/web/src/engine/predictive-text/wordbreakers/src/main/placeholder.ts b/web/src/engine/predictive-text/wordbreakers/src/main/placeholder.ts index 2a3c880742..3b44769b3a 100644 --- a/web/src/engine/predictive-text/wordbreakers/src/main/placeholder.ts +++ b/web/src/engine/predictive-text/wordbreakers/src/main/placeholder.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { LexicalModelTypes } from '@keymanapp/common-types'; /** diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/headless/promise-store.tests.js b/web/src/engine/predictive-text/worker-main/unit_tests/headless/promise-store.tests.js index 8e220a5176..25a9410236 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/headless/promise-store.tests.js +++ b/web/src/engine/predictive-text/worker-main/unit_tests/headless/promise-store.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/headless/top-level-lmlayer.tests.js b/web/src/engine/predictive-text/worker-main/unit_tests/headless/top-level-lmlayer.tests.js index 78b071e3c4..6b2609e0dc 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/headless/top-level-lmlayer.tests.js +++ b/web/src/engine/predictive-text/worker-main/unit_tests/headless/top-level-lmlayer.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-dummy-integration.tests.js b/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-dummy-integration.tests.js index d546edb704..d34549f699 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-dummy-integration.tests.js +++ b/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-dummy-integration.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import fs from 'fs'; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-trie-integration.tests.js b/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-trie-integration.tests.js index 70583a978e..f5844890ba 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-trie-integration.tests.js +++ b/web/src/engine/predictive-text/worker-main/unit_tests/headless/worker-trie-integration.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/top-level-lmlayer.tests.ts b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/top-level-lmlayer.tests.ts index df5cb45e3b..b9cdd23c3d 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/top-level-lmlayer.tests.ts +++ b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/top-level-lmlayer.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LMLayer, WebWorker } from "@keymanapp/lexical-model-layer/web"; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-dummy-integration.tests.ts b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-dummy-integration.tests.ts index 04af7ec8dc..fbd762b104 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-dummy-integration.tests.ts +++ b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-dummy-integration.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LMLayer, WebWorker } from "@keymanapp/lexical-model-layer/web"; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-trie-integration.tests.ts b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-trie-integration.tests.ts index bf8d0aef5c..58d947a2ca 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-trie-integration.tests.ts +++ b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/cases/worker-trie-integration.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LMLayer, WebWorker } from "@keymanapp/lexical-model-layer/web"; diff --git a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/helpers.mjs b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/helpers.mjs index 385379bde6..5e26cc19aa 100644 --- a/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/helpers.mjs +++ b/web/src/engine/predictive-text/worker-main/unit_tests/in_browser/helpers.mjs @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ export let defaultCapabilities = { maxLeftContextCodeUnits: 64 -}; \ No newline at end of file +}; diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/execution-timer.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/execution-timer.ts index 1ba6f535a0..90fb90f841 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/execution-timer.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/execution-timer.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { timedPromise } from "keyman/common/web-utils"; const MIN_OUTLIER = 1; // 1ms. diff --git a/web/src/engine/predictive-text/worker-thread/src/tests/test-runner/cases/worker.tests.ts b/web/src/engine/predictive-text/worker-thread/src/tests/test-runner/cases/worker.tests.ts index fcae30e762..899b0d361f 100644 --- a/web/src/engine/predictive-text/worker-thread/src/tests/test-runner/cases/worker.tests.ts +++ b/web/src/engine/predictive-text/worker-thread/src/tests/test-runner/cases/worker.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LMLayerWorkerCode } from "@keymanapp/lm-worker/worker-main.wrapped.js"; import { DEFAULT_BROWSER_TIMEOUT } from '@keymanapp/common-test-resources/test-timeouts.mjs'; diff --git a/web/src/test/auto/dom/cases/attachment/pageContextAttachment.tests.ts b/web/src/test/auto/dom/cases/attachment/pageContextAttachment.tests.ts index 9ea5e97bb9..b1166dc81d 100644 --- a/web/src/test/auto/dom/cases/attachment/pageContextAttachment.tests.ts +++ b/web/src/test/auto/dom/cases/attachment/pageContextAttachment.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { PageContextAttachment } from 'keyman/engine/attachment'; import { DeviceSpec, timedPromise } from 'keyman/common/web-utils'; import { DEFAULT_BROWSER_TIMEOUT } from '@keymanapp/common-test-resources/test-timeouts.mjs'; @@ -867,4 +870,4 @@ describe('KMW element-attachment logic', function () { attacher.shutdown(); }); }) -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/browser/contextManager.tests.ts b/web/src/test/auto/dom/cases/browser/contextManager.tests.ts index a86e0a20f7..ccaeb98a67 100644 --- a/web/src/test/auto/dom/cases/browser/contextManager.tests.ts +++ b/web/src/test/auto/dom/cases/browser/contextManager.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { ContextManager } from 'keyman/app/browser'; import { textStoreForElement } from 'keyman/engine/attachment'; import { TextAreaElementTextStore } from 'keyman/engine/element-text-stores'; diff --git a/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts b/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts index 1e270480ba..ceba63585b 100644 --- a/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts +++ b/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { CookieSerializer } from 'keyman/engine/dom-utils'; import { assert } from 'chai'; @@ -137,4 +140,4 @@ describe('CookieSerializer', function () { assert.sameDeepMembers(result, []); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/element-text-stores/element_interfaces.tests.ts b/web/src/test/auto/dom/cases/element-text-stores/element_interfaces.tests.ts index 413923b5e6..091d6246bd 100644 --- a/web/src/test/auto/dom/cases/element-text-stores/element_interfaces.tests.ts +++ b/web/src/test/auto/dom/cases/element-text-stores/element_interfaces.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { KMWString } from 'keyman/common/web-utils'; @@ -1412,4 +1415,4 @@ describe('Element InputElementTextStore/Output Interfacing', function () { }); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/element-text-stores/syntheticTextStore.tests.ts b/web/src/test/auto/dom/cases/element-text-stores/syntheticTextStore.tests.ts index 5419a32218..f49964afed 100644 --- a/web/src/test/auto/dom/cases/element-text-stores/syntheticTextStore.tests.ts +++ b/web/src/test/auto/dom/cases/element-text-stores/syntheticTextStore.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { KMWString } from 'keyman/common/web-utils'; @@ -148,4 +151,4 @@ describe('SyntheticTextStore', function() { }); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/gesture-processor/canary.tests.ts b/web/src/test/auto/dom/cases/gesture-processor/canary.tests.ts index 7c3fde9b85..87acebddbc 100644 --- a/web/src/test/auto/dom/cases/gesture-processor/canary.tests.ts +++ b/web/src/test/auto/dom/cases/gesture-processor/canary.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -126,4 +129,4 @@ describe("'Canary' checks", function() { assert.isTrue(fakeHandler.called, "Unit test attempt failed: handler was not called successfully."); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/gesture-processor/ignoredInputs.tests.ts b/web/src/test/auto/dom/cases/gesture-processor/ignoredInputs.tests.ts index a288f925a3..bd8d504856 100644 --- a/web/src/test/auto/dom/cases/gesture-processor/ignoredInputs.tests.ts +++ b/web/src/test/auto/dom/cases/gesture-processor/ignoredInputs.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -96,4 +99,4 @@ describe("Layer one - DOM -> InputSequence", function() { assert.equal(recorder.count, 0, "Input starting outside the main receiver element's hierarchy was not ignored!"); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/gesture-processor/recordedCoordSequences.tests.ts b/web/src/test/auto/dom/cases/gesture-processor/recordedCoordSequences.tests.ts index 61da5cd09c..5734c68e40 100644 --- a/web/src/test/auto/dom/cases/gesture-processor/recordedCoordSequences.tests.ts +++ b/web/src/test/auto/dom/cases/gesture-processor/recordedCoordSequences.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert, expect } from 'chai'; import sinon from 'sinon'; @@ -156,4 +159,4 @@ describe("Layer one - DOM -> InputSequence", function() { }); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/keyboard-storage/cloudQueries.tests.ts b/web/src/test/auto/dom/cases/keyboard-storage/cloudQueries.tests.ts index 7174d6e482..bc71c097b5 100644 --- a/web/src/test/auto/dom/cases/keyboard-storage/cloudQueries.tests.ts +++ b/web/src/test/auto/dom/cases/keyboard-storage/cloudQueries.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -171,4 +174,4 @@ describe("Cloud-query interface", () => { assert.isTrue(stubs[0].KF.includes('s.keyman.com')); // The keyboardsURI property from the cloud options should be applied. }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/keyboard-storage/domCloudRequester.tests.ts b/web/src/test/auto/dom/cases/keyboard-storage/domCloudRequester.tests.ts index 7165aedbc0..e653c23399 100644 --- a/web/src/test/auto/dom/cases/keyboard-storage/domCloudRequester.tests.ts +++ b/web/src/test/auto/dom/cases/keyboard-storage/domCloudRequester.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -96,4 +99,4 @@ describe("Mocked cloud query results ('canary' testing)", () => { assert.isOk(keyboard.languages.find((language: any) => language.id == 'dz')); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/keyboard-storage/keyboardRequisitioner.tests.ts b/web/src/test/auto/dom/cases/keyboard-storage/keyboardRequisitioner.tests.ts index 5ac6f496e1..567f73f200 100644 --- a/web/src/test/auto/dom/cases/keyboard-storage/keyboardRequisitioner.tests.ts +++ b/web/src/test/auto/dom/cases/keyboard-storage/keyboardRequisitioner.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -108,4 +111,4 @@ describe("KeyboardRequisitioner", function () { assert.strictEqual(cache.getKeyboardForStub(stub), khmer_angkor); assert.isOk(khmer_angkor); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/keyboard/domKeyboardLoader.tests.ts b/web/src/test/auto/dom/cases/keyboard/domKeyboardLoader.tests.ts index e9ea8fe8c0..0c6be385ae 100644 --- a/web/src/test/auto/dom/cases/keyboard/domKeyboardLoader.tests.ts +++ b/web/src/test/auto/dom/cases/keyboard/domKeyboardLoader.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { DOMKeyboardLoader } from 'keyman/engine/keyboard'; diff --git a/web/src/test/auto/dom/cases/osk/activation.tests.ts b/web/src/test/auto/dom/cases/osk/activation.tests.ts index c567e14315..5af3a5b9b1 100644 --- a/web/src/test/auto/dom/cases/osk/activation.tests.ts +++ b/web/src/test/auto/dom/cases/osk/activation.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import * as KeymanOSK from 'keyman/engine/osk'; import { DeviceDetector } from 'keyman/engine/main'; @@ -131,4 +134,4 @@ describe('OSK activation', function () { assert.equal(container.offsetWidth, 600); assert.equal(container.offsetHeight, 400); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/cases/osk/events.tests.ts b/web/src/test/auto/dom/cases/osk/events.tests.ts index d25c893596..7296efadb7 100644 --- a/web/src/test/auto/dom/cases/osk/events.tests.ts +++ b/web/src/test/auto/dom/cases/osk/events.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import * as KeymanOSK from 'keyman/engine/osk'; import { DeviceDetector } from 'keyman/engine/main'; @@ -82,4 +85,4 @@ describe('OSK events', function () { osk.activationModel.enabled = true; assert.isTrue(legacyShowStub.calledOnce); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/init_check.tests.ts b/web/src/test/auto/dom/init_check.tests.ts index 46ad413673..569c2baa9d 100644 --- a/web/src/test/auto/dom/init_check.tests.ts +++ b/web/src/test/auto/dom/init_check.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ // A simple "does device detection work properly" unit test. // We'll let things break after this reports, since this will likely signal a LOT of other failures. import { assert } from 'chai'; @@ -26,4 +29,4 @@ describe('Test Initialization', function() { assert.fail(err); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/dom/kbdLoader.ts b/web/src/test/auto/dom/kbdLoader.ts index 3c1dd21eef..4f3dbd6296 100644 --- a/web/src/test/auto/dom/kbdLoader.ts +++ b/web/src/test/auto/dom/kbdLoader.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { DOMKeyboardLoader, JSKeyboard, @@ -59,4 +62,4 @@ export function loadKeyboardsFromStubs(apiStubs: any, baseDir: string) { } return priorPromise.then(() => keyboards); -} \ No newline at end of file +} diff --git a/web/src/test/auto/dom/test_utils.ts b/web/src/test/auto/dom/test_utils.ts index c015988707..757ddb989c 100644 --- a/web/src/test/auto/dom/test_utils.ts +++ b/web/src/test/auto/dom/test_utils.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ // Defines an object for dynamically adding elements for testing purposes. // Designed for use with the robustAttachment.html fixture. diff --git a/web/src/test/auto/headless/app/browser/hardware-event-processing.tests.ts b/web/src/test/auto/headless/app/browser/hardware-event-processing.tests.ts index 6593b4e115..02614baaf4 100644 --- a/web/src/test/auto/headless/app/browser/hardware-event-processing.tests.ts +++ b/web/src/test/auto/headless/app/browser/hardware-event-processing.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { unitTestEndPoints } from 'keyman/app/browser'; @@ -593,4 +596,4 @@ describe("app/browser: hardware event processing", () => { }); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/attachment/pageContextAttachment.tests.ts b/web/src/test/auto/headless/engine/attachment/pageContextAttachment.tests.ts index 9b873d38a1..95ebaeffea 100644 --- a/web/src/test/auto/headless/engine/attachment/pageContextAttachment.tests.ts +++ b/web/src/test/auto/headless/engine/attachment/pageContextAttachment.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; // @ts-ignore // Type info unavailable; doing a npm-install for it breaks things much worse in other ways. import { JSDOM } from 'jsdom'; diff --git a/web/src/test/auto/headless/engine/events/emitterListenerSpy.tests.js b/web/src/test/auto/headless/engine/events/emitterListenerSpy.tests.js index 49fe322129..e050d23011 100644 --- a/web/src/test/auto/headless/engine/events/emitterListenerSpy.tests.js +++ b/web/src/test/auto/headless/engine/events/emitterListenerSpy.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -47,4 +50,4 @@ describe("EmitterListenerSpy", () => { assert.isTrue(fakeRemoveListener.calledOnce); assert.equal(fakeRemoveListener.firstCall.args[0], 'event'); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/events/legacyEventEmitter.tests.js b/web/src/test/auto/headless/engine/events/legacyEventEmitter.tests.js index 103443fbbc..37142e9745 100644 --- a/web/src/test/auto/headless/engine/events/legacyEventEmitter.tests.js +++ b/web/src/test/auto/headless/engine/events/legacyEventEmitter.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -29,4 +32,4 @@ describe("LegacyEventEmitter", () => { * - Adherence to the callEvent return-type spec * - Listener returns false => no further listeners get called. */ -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/interfaces/pathConfiguration.tests.ts b/web/src/test/auto/headless/engine/interfaces/pathConfiguration.tests.ts index 3421a4679e..924ddfa1e6 100644 --- a/web/src/test/auto/headless/engine/interfaces/pathConfiguration.tests.ts +++ b/web/src/test/auto/headless/engine/interfaces/pathConfiguration.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { PathOptionDefaults, PathConfiguration } from 'keyman/engine/interfaces'; @@ -67,4 +70,4 @@ describe("Path Configuration", () => { assert.equal(paths.keyboards, ''); assert.equal(paths.fonts, ''); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/interfaces/prediction/predictionContext.tests.ts b/web/src/test/auto/headless/engine/interfaces/prediction/predictionContext.tests.ts index 15faf2189f..46108b01f0 100644 --- a/web/src/test/auto/headless/engine/interfaces/prediction/predictionContext.tests.ts +++ b/web/src/test/auto/headless/engine/interfaces/prediction/predictionContext.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; diff --git a/web/src/test/auto/headless/engine/js-processor/basic-init.tests.js b/web/src/test/auto/headless/engine/js-processor/basic-init.tests.js index 29d6fb02de..8f677d8a4b 100644 --- a/web/src/test/auto/headless/engine/js-processor/basic-init.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/basic-init.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/js-processor/bundled-module.tests.js b/web/src/test/auto/headless/engine/js-processor/bundled-module.tests.js index 40b78362ed..33884814dd 100644 --- a/web/src/test/auto/headless/engine/js-processor/bundled-module.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/bundled-module.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from "chai"; import { DEFAULT_PROCESSOR_INIT_OPTIONS } from 'keyman/test/resources'; import { JSKeyboardProcessor } from "keyman/engine/js-processor"; diff --git a/web/src/test/auto/headless/engine/js-processor/engine/context.tests.js b/web/src/test/auto/headless/engine/js-processor/engine/context.tests.js index 668b1b8962..8a7fcd2a29 100644 --- a/web/src/test/auto/headless/engine/js-processor/engine/context.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/engine/context.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; @@ -1233,4 +1236,4 @@ describe('Engine - Context Matching', function() { runEngineRuleSet([NOTANY_NUL_TEST_3]); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/js-processor/engine/notany_context.tests.js b/web/src/test/auto/headless/engine/js-processor/engine/notany_context.tests.js index b7a1d3cfd0..189cb61189 100644 --- a/web/src/test/auto/headless/engine/js-processor/engine/notany_context.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/engine/notany_context.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; @@ -103,4 +106,4 @@ describe('Engine - notany() and context()', function() { it('verify notany comparison flip correction from #3817', function() { runStringRuleSet('YZ', 'pass!'); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/js-processor/engine/stores.tests.js b/web/src/test/auto/headless/engine/js-processor/engine/stores.tests.js index eeb976a096..2aa8825649 100644 --- a/web/src/test/auto/headless/engine/js-processor/engine/stores.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/engine/stores.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { KMWString } from 'keyman/common/web-utils'; @@ -49,4 +52,4 @@ describe('Engine - Stores', function() { }); // TODO: Migrate a Node-based copy of the variable store tests here as well. -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/js-processor/kbdInterface.tests.ts b/web/src/test/auto/headless/engine/js-processor/kbdInterface.tests.ts index 32dbbc188c..0cfa199a9c 100644 --- a/web/src/test/auto/headless/engine/js-processor/kbdInterface.tests.ts +++ b/web/src/test/auto/headless/engine/js-processor/kbdInterface.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/js-processor/non-positional-rules.tests.js b/web/src/test/auto/headless/engine/js-processor/non-positional-rules.tests.js index 4f261cd867..ca9dcdc5e0 100644 --- a/web/src/test/auto/headless/engine/js-processor/non-positional-rules.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/non-positional-rules.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { ModifierKeyConstants } from '@keymanapp/common-types'; diff --git a/web/src/test/auto/headless/engine/js-processor/specialized-backspace.tests.ts b/web/src/test/auto/headless/engine/js-processor/specialized-backspace.tests.ts index 9a14c23b53..353ee351ac 100644 --- a/web/src/test/auto/headless/engine/js-processor/specialized-backspace.tests.ts +++ b/web/src/test/auto/headless/engine/js-processor/specialized-backspace.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/js-processor/transcriptions.tests.js b/web/src/test/auto/headless/engine/js-processor/transcriptions.tests.js index ab1403f2fa..c52dee280b 100644 --- a/web/src/test/auto/headless/engine/js-processor/transcriptions.tests.js +++ b/web/src/test/auto/headless/engine/js-processor/transcriptions.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { SyntheticTextStore, findCommonSubstringEndIndex } from 'keyman/engine/keyboard'; @@ -509,4 +512,4 @@ but not himself.`; // Sheev Palpatine, in the Star Wars prequels. }); }); */ -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/keyboard-storage/stubAndKeyboardCache.tests.js b/web/src/test/auto/headless/engine/keyboard-storage/stubAndKeyboardCache.tests.js index 082d40c247..6b3e25b0b4 100644 --- a/web/src/test/auto/headless/engine/keyboard-storage/stubAndKeyboardCache.tests.js +++ b/web/src/test/auto/headless/engine/keyboard-storage/stubAndKeyboardCache.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; import fs from 'fs'; @@ -172,4 +175,4 @@ describe('StubAndKeyboardCache', function () { assert.isTrue(err.message.includes('bad_stub')); }; }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/keyboard/jskeyboard.tests.ts b/web/src/test/auto/headless/engine/keyboard/jskeyboard.tests.ts index dcf2de6b85..4f27b86839 100644 --- a/web/src/test/auto/headless/engine/keyboard/jskeyboard.tests.ts +++ b/web/src/test/auto/headless/engine/keyboard/jskeyboard.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/keyboard/keyboard-loading.tests.js b/web/src/test/auto/headless/engine/keyboard/keyboard-loading.tests.js index b426539227..0b556d9bdd 100644 --- a/web/src/test/auto/headless/engine/keyboard/keyboard-loading.tests.js +++ b/web/src/test/auto/headless/engine/keyboard/keyboard-loading.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/keyboard/keyboard-properties.tests.js b/web/src/test/auto/headless/engine/keyboard/keyboard-properties.tests.js index f23d56e3b5..b15a1e1cf0 100644 --- a/web/src/test/auto/headless/engine/keyboard/keyboard-properties.tests.js +++ b/web/src/test/auto/headless/engine/keyboard/keyboard-properties.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import fs from 'fs'; import path from 'path'; @@ -95,4 +98,4 @@ describe('Keyboard Properties', function() { propObject.displayName = customDisplayName; assert.equal(propObject.displayName, customDisplayName); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/keyboard/keyboardLoaderBase.tests.ts b/web/src/test/auto/headless/engine/keyboard/keyboardLoaderBase.tests.ts index 94b9400a80..3b3ce34026 100644 --- a/web/src/test/auto/headless/engine/keyboard/keyboardLoaderBase.tests.ts +++ b/web/src/test/auto/headless/engine/keyboard/keyboardLoaderBase.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { createRequire } from 'module'; diff --git a/web/src/test/auto/headless/engine/keyboard/syntheticTextStore.tests.js b/web/src/test/auto/headless/engine/keyboard/syntheticTextStore.tests.js index 8ecc3c4c37..66f1214c38 100644 --- a/web/src/test/auto/headless/engine/keyboard/syntheticTextStore.tests.js +++ b/web/src/test/auto/headless/engine/keyboard/syntheticTextStore.tests.js @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { SyntheticTextStore } from 'keyman/engine/keyboard'; @@ -89,4 +92,4 @@ describe('SyntheticTextStoreTests', function() { assert.deepEqual(postClear, editTextStore); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts b/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts index d76b774d61..732bda7fbb 100644 --- a/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts +++ b/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { env } from 'node:process'; import fs from 'node:fs'; import { createRequire } from 'node:module'; diff --git a/web/src/test/auto/headless/engine/osk/activation.tests.ts b/web/src/test/auto/headless/engine/osk/activation.tests.ts index 0b74d0bd92..779a114cf8 100644 --- a/web/src/test/auto/headless/engine/osk/activation.tests.ts +++ b/web/src/test/auto/headless/engine/osk/activation.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -230,4 +233,4 @@ describe("Activators", () => { assert.deepStrictEqual(stub.firstCall.args[0], object); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts index 469642451f..1c09e1a09b 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/asyncClosureDispatchQueue.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import { default as sinon, type SinonSpy } from 'sinon'; import { AsyncClosureDispatchQueue, type QueueClosure } from 'keyman/engine/gesture-processor'; @@ -233,4 +236,4 @@ describe('AsyncClosureDispatchQueue', () => { fakeTimers.restore(); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts index 9df87a7b68..0e1455ed7e 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gesturePath.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; import path from 'path'; @@ -289,4 +292,4 @@ describe("GesturePath", function() { this.fakeClock.restore(); }) }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts index 689c806bbb..1914f73dd8 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestureSource.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import { GestureDebugSource, InputSample } from 'keyman/engine/gesture-processor'; @@ -217,4 +220,4 @@ describe("GestureSource", function() { source.popRecognizerConfig(); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts index 52f1dea656..5b9444cb78 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureMatcher.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; import * as PromiseStatusModule from 'promise-status-async'; @@ -908,4 +911,4 @@ describe("GestureMatcher", function() { assert.isTrue(sources[0].path.isComplete); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts index 05b38aa857..172597ac34 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureModelDefs.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { GestureModelDefs, gestures } from 'keyman/engine/gesture-processor'; @@ -44,4 +47,4 @@ describe("Gesture model definitions", () => { assert.throws(() => getGestureModelSet(TestGestureModelDefinitions, 'malformed')); assert.throws(() => getGestureModelSet(TestGestureModelDefinitions, 'unavailable-set')); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts index 94b5f597f7..06b15db3c5 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/gestureSequence.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; import * as PromiseStatusModule from 'promise-status-async'; @@ -586,4 +589,4 @@ describe("GestureSequence", function() { await sequenceEmulationAndAssertion(emulationEngine, completionPromise, [sequenceAssertion]); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts index d727cf5923..8833e6e2fb 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/matcherSelector.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; @@ -749,4 +752,4 @@ describe("MatcherSelector", function () { }); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts index 64702cca86..268c6da1ae 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/pathMatcher.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; import * as PromiseStatusModule from 'promise-status-async'; @@ -746,4 +749,4 @@ describe("PathMatcher", function() { assert.deepEqual(await modelMatcher.promise, {type: 'reject', cause: 'item'}); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts index 812a0e5651..aeafba26bc 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/gestures/touchpointCoordinator.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai' import sinon from 'sinon'; import * as PromiseStatusModule from 'promise-status-async'; @@ -1749,4 +1752,4 @@ describe("TouchpointCoordinator", () => { await runnerPromise; assert.isEmpty(touchpointCoordinator.activeGestures); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts b/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts index 4a29363ca9..ff51d11be2 100644 --- a/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts +++ b/web/src/test/auto/headless/engine/osk/gesture-processor/pathStats.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { CumulativePathStats, InputSample } from 'keyman/engine/gesture-processor'; @@ -167,4 +170,4 @@ describe("CumulativePathStats", function() { assert.equal(deaccumulatedSecondHalfStats.initialSample, secondHalfStats.initialSample); assert.equal(deaccumulatedSecondHalfStats.lastSample, secondHalfStats.lastSample); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/osk/input/gestures/browser/subkeyPopup.tests.ts b/web/src/test/auto/headless/engine/osk/input/gestures/browser/subkeyPopup.tests.ts index e4ce793e14..13b8fc792e 100644 --- a/web/src/test/auto/headless/engine/osk/input/gestures/browser/subkeyPopup.tests.ts +++ b/web/src/test/auto/headless/engine/osk/input/gestures/browser/subkeyPopup.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; // @ts-ignore // Type info unavailable; doing a npm-install for it breaks things much worse in other ways. import { JSDOM } from 'jsdom'; diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/common.tests.ts b/web/src/test/auto/headless/engine/predictive-text/templates/common.tests.ts index 95db19df8d..9e75f9d948 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/common.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/common.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for common utility functions/methods. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/custom-breakers.def.ts b/web/src/test/auto/headless/engine/predictive-text/templates/custom-breakers.def.ts index d80776ee5f..33275cc2f0 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/custom-breakers.def.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/custom-breakers.def.ts @@ -1,4 +1,6 @@ -/** +/* + * Keyman is copyright (C) SIL Global. MIT License. + * * The custom wordbreaker used by the sil.km.gcc model as of * https://github.com/keymanapp/lexical-models/pull/265. * @type {WordBreakingFunction} @@ -126,4 +128,4 @@ export function customWordBreakerFormer (str: string) { length: token.length } }); -} \ No newline at end of file +} diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/helpers.ts b/web/src/test/auto/headless/engine/predictive-text/templates/helpers.ts index f39cde9fa1..75e5064e0d 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/helpers.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/helpers.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import path from 'node:path'; import { createRequire } from "node:module"; import { fileURLToPath } from 'node:url'; diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/quote-behavior.tests.ts b/web/src/test/auto/headless/engine/predictive-text/templates/quote-behavior.tests.ts index c6348d651d..8816d36b92 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/quote-behavior.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/quote-behavior.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for quote behaviors. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/tokenization.tests.ts b/web/src/test/auto/headless/engine/predictive-text/templates/tokenization.tests.ts index 3bc636c412..995308c4b1 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/tokenization.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/tokenization.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for common utility functions/methods. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/trie-model.tests.ts b/web/src/test/auto/headless/engine/predictive-text/templates/trie-model.tests.ts index 25cb5adfae..f7338ef68d 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/trie-model.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/trie-model.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for the Trie prediction model. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/templates/trie-traversal.tests.ts b/web/src/test/auto/headless/engine/predictive-text/templates/trie-traversal.tests.ts index 6c3239f884..5e47bd43cf 100644 --- a/web/src/test/auto/headless/engine/predictive-text/templates/trie-traversal.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/templates/trie-traversal.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for the Trie prediction model. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/ascii-word-breaker.tests.ts b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/ascii-word-breaker.tests.ts index 843df8c002..84a26b77ca 100644 --- a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/ascii-word-breaker.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/ascii-word-breaker.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { ascii as breakASCIIWords } from '@keymanapp/models-wordbreakers'; diff --git a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/default-word-breaker.tests.ts b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/default-word-breaker.tests.ts index 192385ba10..68f0e516ac 100644 --- a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/default-word-breaker.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/default-word-breaker.tests.ts @@ -1,4 +1,6 @@ -/** +/* + * Keyman is copyright (C) SIL Global. MIT License. + * * Smoke-test the default */ diff --git a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/placeholder-word-breaker.tests.ts b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/placeholder-word-breaker.tests.ts index 0991315cd2..bb584069a0 100644 --- a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/placeholder-word-breaker.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/placeholder-word-breaker.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { placeholder as breakWords } from '@keymanapp/models-wordbreakers'; diff --git a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/search-property.tests.ts b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/search-property.tests.ts index e345154fa0..6fa973e1ed 100644 --- a/web/src/test/auto/headless/engine/predictive-text/wordbreakers/search-property.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/wordbreakers/search-property.tests.ts @@ -1,4 +1,6 @@ -/** +/* + * Keyman is copyright (C) SIL Global. MIT License. + * * Smoke-test the default */ diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/classical-calculation.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/classical-calculation.tests.ts index de321ffc7e..bf8493c8b3 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/classical-calculation.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/classical-calculation.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { ClassicalDistanceCalculation, EditOperation, EditTuple, forNewIndices } from '@keymanapp/lm-worker/test-index'; import sinon from 'sinon'; diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/early-correction-search-stopping.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/early-correction-search-stopping.tests.ts index 6958c783a4..90238867b5 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/early-correction-search-stopping.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/early-correction-search-stopping.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { CORRECTION_SEARCH_THRESHOLDS, CorrectionPredictionTupleCore, ModelCompositor, shouldStopSearchingEarly } from "@keymanapp/lm-worker/test-index"; @@ -57,4 +60,4 @@ describe('correction-search: shouldStopSearchingEarly', () => { assert.isFalse(shouldStopSearchingEarly(baseCost, baseCost + expectedThreshold - 0.01, predictions)); assert.isTrue(shouldStopSearchingEarly(baseCost, baseCost + expectedThreshold + 0.01, predictions)); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/execution-timer.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/execution-timer.tests.ts index 461ccf2f30..8942dc1137 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/execution-timer.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/execution-timer.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { useFakeTimers, type SinonFakeTimers } from 'sinon'; @@ -379,4 +382,4 @@ describe('ExecutionBucket', () => { assert.isBelow(bucket.variance, 0.5); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/segmentable-calculation.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/segmentable-calculation.tests.ts index 1abdfa89e4..6af1ed048c 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/segmentable-calculation.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/correction-search/segmentable-calculation.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { SegmentableDistanceCalculation } from '@keymanapp/lm-worker/test-index'; @@ -205,4 +208,4 @@ describe('Split/merge aware edit-distance calculation', () => { { op: 'substitute', input: 3, match: 3 } // 'g' -> 'efgh' ]); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/auto-correct.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/auto-correct.tests.ts index 9306371712..2617f0953e 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/auto-correct.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/auto-correct.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { @@ -571,4 +574,4 @@ describe('predictionAutoSelect', () => { // it.skip("properly groups sufficiently-similar suggestions for auto-correction based on engine settings", () => { // // // }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/base-context-state.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/base-context-state.tests.ts index a38b4e3012..d938fff5b2 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/base-context-state.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/base-context-state.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -255,4 +258,4 @@ describe('matchBaseContextState', () => { warningSpy.restore(); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/casing-detection.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/casing-detection.tests.ts index 84e80a00f2..109e2f693a 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/casing-detection.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/casing-detection.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LexicalModelTypes } from '@keymanapp/common-types'; @@ -383,4 +386,4 @@ describe('detectCasing', () => { deleteLeft: 0 }, context)); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-alignment.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-alignment.tests.ts index 1e5146795f..66c7fa5b52 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-alignment.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-alignment.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { LexicalModelTypes } from '@keymanapp/common-types'; @@ -100,4 +103,4 @@ describe('determineSuggestionAlignment', () => { assert.equal(results.correctionDeleteLeft, "tech".length /* does not include the deleted whitespace */); assert.equal(results.committedDeleteLeft, 1 /* for the deleted whitespace */); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-context-transition.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-context-transition.tests.ts index e911021537..4e0e54b3bb 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-context-transition.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/determine-suggestion-context-transition.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import sinon from 'sinon'; @@ -453,4 +456,4 @@ describe('determineContextTransition', () => { warningEmitterSpy.restore(); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/predict-from-corrections.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/predict-from-corrections.tests.ts index d18f287841..2790522ee3 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/predict-from-corrections.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/predict-from-corrections.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-deduplication.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-deduplication.tests.ts index 1a3aad48a2..5d62044cdb 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-deduplication.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-deduplication.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import * as wordBreakers from '@keymanapp/models-wordbreakers'; @@ -167,4 +170,4 @@ describe('dedupeSuggestions', () => { assert.deepEqual(deduplicated, expected); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-finalization.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-finalization.tests.ts index 74bcf0c91a..a21918822f 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-finalization.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-finalization.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-similarity.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-similarity.tests.ts index 9e88e8af22..bae0c1c8a5 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-similarity.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/prediction-helpers/suggestion-similarity.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { QuoteBehavior } from "@keymanapp/models-templates"; @@ -417,4 +420,4 @@ describe('processSimilarity', () => { assert.sameDeepMembers(distribution, expectation); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/transform-utils.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/transform-utils.tests.ts index e7d992ae64..d075ea429d 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/transform-utils.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/transform-utils.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { TransformUtils } from '@keymanapp/lm-worker/test-index'; diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-custom-punctuation.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-custom-punctuation.tests.ts index 9b9ab2c312..908929fea4 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-custom-punctuation.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-custom-punctuation.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for the Dummy prediction model. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-initialization.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-initialization.tests.ts index 6fd84c5602..ac5cc951ba 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-initialization.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-initialization.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import fs from 'node:fs'; import { createRequire } from 'node:module'; diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-model-compositor.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-model-compositor.tests.ts index f01cafbac6..408b5fe144 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-model-compositor.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-model-compositor.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Integration tests for the model compositor with the trie model. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict-dummy.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict-dummy.tests.ts index 536c8d266f..181dd06e9a 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict-dummy.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict-dummy.tests.ts @@ -1,4 +1,6 @@ /* + * Keyman is copyright (C) SIL Global. MIT License. + * * Unit tests for the Dummy prediction model. */ diff --git a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict.tests.ts b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict.tests.ts index 2214d6e61c..4b19f54a83 100644 --- a/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict.tests.ts +++ b/web/src/test/auto/headless/engine/predictive-text/worker-thread/worker-predict.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { createRequire } from 'node:module'; import { assert } from 'chai'; diff --git a/web/src/test/auto/integrated/cases/basics.tests.ts b/web/src/test/auto/integrated/cases/basics.tests.ts index b44907f243..026c714a80 100644 --- a/web/src/test/auto/integrated/cases/basics.tests.ts +++ b/web/src/test/auto/integrated/cases/basics.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { DEVICE_DETECT_FAILURE, setupKMW, teardownKMW } from "../test_utils.js"; @@ -195,4 +198,4 @@ if(!device.touchable) { assert.isNotNull(toolbar, 'The main toolbar element was not added to the page!'); }) }); -} \ No newline at end of file +} diff --git a/web/src/test/auto/integrated/cases/engine.tests.ts b/web/src/test/auto/integrated/cases/engine.tests.ts index a7e624cbf4..7f59652267 100644 --- a/web/src/test/auto/integrated/cases/engine.tests.ts +++ b/web/src/test/auto/integrated/cases/engine.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { @@ -336,4 +339,4 @@ describe('Engine - Browser Interactions', function() { }); // THEN we run our checks. }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/integrated/cases/engine_chirality.tests.ts b/web/src/test/auto/integrated/cases/engine_chirality.tests.ts index 57dbf1b48b..8ce0d1d713 100644 --- a/web/src/test/auto/integrated/cases/engine_chirality.tests.ts +++ b/web/src/test/auto/integrated/cases/engine_chirality.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { @@ -49,4 +52,4 @@ describe('Engine - Chirality', function() { return await runKeyboardTestFromJSON('resources/json/engine_tests/chirality.json', {usingOSK: true}, assert.equal, baseTimeout); }); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/integrated/cases/events.tests.ts b/web/src/test/auto/integrated/cases/events.tests.ts index 29a9e24d1b..fcc08354bb 100644 --- a/web/src/test/auto/integrated/cases/events.tests.ts +++ b/web/src/test/auto/integrated/cases/events.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { @@ -153,4 +156,4 @@ describe('Event Management', function() { assert.equal(counterObj.i, fin, "Event handler not called the expected number of times"); }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/integrated/cases/text_selection.tests.ts b/web/src/test/auto/integrated/cases/text_selection.tests.ts index 9bc9de9cd4..d6ac60d8bc 100644 --- a/web/src/test/auto/integrated/cases/text_selection.tests.ts +++ b/web/src/test/auto/integrated/cases/text_selection.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { assert } from 'chai'; import { diff --git a/web/src/test/auto/integrated/init_check.tests.ts b/web/src/test/auto/integrated/init_check.tests.ts index 813ac7ba45..aebfc70412 100644 --- a/web/src/test/auto/integrated/init_check.tests.ts +++ b/web/src/test/auto/integrated/init_check.tests.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ // A simple "does device detection work properly" unit test. // We'll let things break after this reports, since this will likely signal a LOT of other failures. import { assert } from 'chai'; @@ -27,4 +30,4 @@ describe('Test Initialization', function() { assert.fail(err); } }); -}); \ No newline at end of file +}); diff --git a/web/src/test/auto/integrated/test_utils.ts b/web/src/test/auto/integrated/test_utils.ts index 585fac8084..07baedb23d 100644 --- a/web/src/test/auto/integrated/test_utils.ts +++ b/web/src/test/auto/integrated/test_utils.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ // KeymanWeb test suite - processing of the Karma configuration's client.args parameter. import { DeviceDetector } from 'keyman/engine/main'; @@ -266,4 +269,4 @@ export function toEscapedSupplementaryPairString(code: number) { const L = ((code - 0x10000) % 0x400 + 0xDC00).toString(16); return "\\u"+H+"\\u"+L; -} \ No newline at end of file +} diff --git a/web/src/test/auto/resources/simulateMultiSourceInput.ts b/web/src/test/auto/resources/simulateMultiSourceInput.ts index 452cec9285..b210825a9b 100644 --- a/web/src/test/auto/resources/simulateMultiSourceInput.ts +++ b/web/src/test/auto/resources/simulateMultiSourceInput.ts @@ -1,3 +1,6 @@ +/* + * Keyman is copyright (C) SIL Global. MIT License. + */ import { InputSample, buildGestureMatchInspector, GestureSource, GestureSourceSubview, gestures } from 'keyman/engine/gesture-processor'; import { ManagedPromise, timedPromise } from 'keyman/common/web-utils'; @@ -417,4 +420,4 @@ export function simulateSelectorInput( selectorPromise: testObjPromise, executor }; -} \ No newline at end of file +}