Skip to content

Commit

Permalink
chore(core): Add test keyboard for text selection tests
Browse files Browse the repository at this point in the history
Part of #9073.
  • Loading branch information
ermshiperete committed Nov 21, 2023
1 parent 284ec09 commit e9d7f3d
Show file tree
Hide file tree
Showing 14 changed files with 1,041 additions and 1 deletion.
12 changes: 11 additions & 1 deletion common/test/keyboards/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function zipsource() {

function build_index() {
local active_targets=($*)
local released_version
cat << EOF > index.html
<!DOCTYPE html>
<html>
Expand All @@ -55,6 +56,15 @@ EOF
else
echo " <li><a href='$TARGET/build/$TARGET.kmp'>$TARGET.kmp</a></li>" >> index.html
fi
if [ -f "$TARGET/$TARGET.html.in" ]; then
if [ "${VERSION_ENVIRONMENT}" == "test" ] || [ "${VERSION_ENVIRONMENT}" == "local" ]; then
released_version="${VERSION_MAJOR}.${VERSION_MINOR}.$(( VERSION_PATCH - 1))"
else
released_version=${VERSION}
fi
sed -e "s/\$VERSION/${released_version}/g" -e "s/\$TIER/${TIER}/g" "$TARGET/$TARGET.html.in" > "$TARGET/$TARGET.html"
echo " <li><a href='$TARGET/$TARGET.html'>$TARGET Test Page</a></li>" >> index.html
fi
done

cat << EOF >> index.html
Expand Down Expand Up @@ -92,4 +102,4 @@ function build() {
fi
}

builder_run_action build build
builder_run_action build build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Text Selection Tests Keyboard Change History
====================

1.0 (2023-11-14)
----------------
* Created by Keyman Team
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

© 2023 Keyman Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions common/test/keyboards/text_selection_tests_keyboard_9073/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Text Selection Tests Keyboard keyboard
==============

Version 1.0

Description
-----------
Text Selection Tests Keyboard generated from template

Links
-----
https://github.com/keymanapp/keyman/issues/9073

Copyright
---------
See [LICENSE.md](LICENSE.md)

Supported Platforms
-------------------
* Windows
* macOS
* Linux
* Web
* iPhone
* iPad
* Android phone
* Android tablet
* Mobile devices
* Desktop devices
* Tablet devices

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Text Selection Tests Keyboard</title>
<style type="text/css">
p { font: 10pt Tahoma; }
h1 { font: bold 16pt Tahoma; color: #4444cc; margin-bottom: 2px }
h2 { font: bold 12pt Tahoma; color: #4444cc; }
</style>
</head>
<body>

<h1>Text Selection Tests Keyboard</h1>

<p>
Text Selection Tests Keyboard 1.0 generated from template.
</p>

<p>© Keyman Team</p>

</body>
</html>
Binary file not shown.
Loading

0 comments on commit e9d7f3d

Please sign in to comment.