From 194fd1a8bfa04425720dff3a8513929e147dbdbd Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 15 Aug 2023 15:34:38 +0700 Subject: [PATCH] chore: update unit test - will be removed later --- .../test-invalid-language-code.keyboard_info | 13 ++++++++++++- .../test-non-canonical-language-code.keyboard_info | 13 ++++++++++++- developer/src/test/auto/keyboard-info/test.bat | 5 ++++- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/developer/src/test/auto/keyboard-info/test-invalid-language-code.keyboard_info b/developer/src/test/auto/keyboard-info/test-invalid-language-code.keyboard_info index 79de65e990..97459477c8 100644 --- a/developer/src/test/auto/keyboard-info/test-invalid-language-code.keyboard_info +++ b/developer/src/test/auto/keyboard-info/test-invalid-language-code.keyboard_info @@ -1,6 +1,17 @@ { + "id": "test", + "name": "test", "license": "mit", "languages": [ "foooooooo=amh" - ] + ], + "platformSupport": { + "windows": "full", + "macos": "full", + "desktopWeb": "full", + "mobileWeb": "full", + "ios": "full", + "android": "full" + }, + "lastModifiedDate": "2017-09-06" } \ No newline at end of file diff --git a/developer/src/test/auto/keyboard-info/test-non-canonical-language-code.keyboard_info b/developer/src/test/auto/keyboard-info/test-non-canonical-language-code.keyboard_info index c245d3f524..eb08779d8f 100644 --- a/developer/src/test/auto/keyboard-info/test-non-canonical-language-code.keyboard_info +++ b/developer/src/test/auto/keyboard-info/test-non-canonical-language-code.keyboard_info @@ -1,6 +1,17 @@ { + "id": "test", + "name": "test", "license": "mit", "languages": [ "amh" - ] + ], + "platformSupport": { + "windows": "full", + "macos": "full", + "desktopWeb": "full", + "mobileWeb": "full", + "ios": "full", + "android": "full" + }, + "lastModifiedDate": "2017-09-06" } \ No newline at end of file diff --git a/developer/src/test/auto/keyboard-info/test.bat b/developer/src/test/auto/keyboard-info/test.bat index d7d896d38b..a08fd723c5 100644 --- a/developer/src/test/auto/keyboard-info/test.bat +++ b/developer/src/test/auto/keyboard-info/test.bat @@ -3,6 +3,9 @@ rem We use test.bat so we can test errorlevels setlocal set ESC= +rem This is temporary until source keyboard_info files go away +copy "%KEYMAN_ROOT%\common\schemas\keyboard_info\keyboard_info.schema.json" "%KEYMAN_ROOT%\common\schemas\keyboard_info\keyboard_info.source.json" + if "%1"=="-h" goto usage if "%1"=="--help" goto usage if "%1"=="-?" goto usage @@ -34,7 +37,7 @@ goto :eof :should-pass echo %BLUE%TEST: %1 %WHITE% -"%compiler%" -s -vs -schema-path "%KEYMAN_ROOT%\common\schemas\keyboard_info" "%2" +"%compiler%" -vs -schema-path "%KEYMAN_ROOT%\common\schemas\keyboard_info" "%2" if %ERRORLEVEL% EQU 0 ( echo %GREEN%TEST PASSED%WHITE% exit /b 0