-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12506 from keymanapp/feat/developer/12012-improve…
…-support-for-bcp47 chore(developer): add baseline tests for bcp47 codes to kmc-package
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
developer/src/kmc-package/test/fixtures/bcp47/invalid_bcp47_1.kps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Package> | ||
<System> | ||
<KeymanDeveloperVersion>10.0.700.0</KeymanDeveloperVersion> | ||
<FileVersion>7.0</FileVersion> | ||
</System> | ||
<Info> | ||
<Version>1.0</Version> | ||
<Name>valid_bcp47</Name> | ||
</Info> | ||
<Files> | ||
<File> | ||
<Name>test.kmx</Name> | ||
</File> | ||
</Files> | ||
<Keyboards> | ||
<Keyboard> | ||
<Name>Invalid BCP 47</Name> | ||
<ID>test</ID> | ||
<Version>1.0</Version> | ||
<Languages> | ||
<Language ID="km-mm-mm">Not a language tag</Language> | ||
</Languages> | ||
</Keyboard> | ||
</Keyboards> | ||
<Strings/> | ||
</Package> |
Binary file not shown.
39 changes: 39 additions & 0 deletions
39
developer/src/kmc-package/test/fixtures/bcp47/valid_bcp47.kps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Package> | ||
<System> | ||
<KeymanDeveloperVersion>10.0.700.0</KeymanDeveloperVersion> | ||
<FileVersion>7.0</FileVersion> | ||
</System> | ||
<Options> | ||
<ExecuteProgram></ExecuteProgram> | ||
<MSIFileName></MSIFileName> | ||
<MSIOptions></MSIOptions> | ||
</Options> | ||
<StartMenu> | ||
<Folder></Folder> | ||
<Items/> | ||
</StartMenu> | ||
<Info> | ||
<Version URL="">1.0</Version> | ||
<Name URL="">valid_bcp47</Name> | ||
</Info> | ||
<Files> | ||
<File> | ||
<Name>test.kmx</Name> | ||
</File> | ||
</Files> | ||
<Keyboards> | ||
<Keyboard> | ||
<Name>Valid BCP 47</Name> | ||
<ID>test</ID> | ||
<Version>1.0</Version> | ||
<Languages> | ||
<Language ID="km">Central Khmer (Khmer, Cambodia)</Language> | ||
<Language ID="str-x-sencoten">SENCOTEN</Language> | ||
<Language ID="str-sencoten">Unregistered variant of Straits Salish</Language> | ||
<Language ID="km-Khmr-KM-x-boran">Private variant of "Old" Khmer</Language> | ||
</Languages> | ||
</Keyboard> | ||
</Keyboards> | ||
<Strings/> | ||
</Package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters