diff --git a/web/README.md b/web/README.md index 90884d5e69..d4410019b4 100644 --- a/web/README.md +++ b/web/README.md @@ -14,11 +14,10 @@ The following folders contain the distribution for Keyman Engine for Web: keymanweb-osk.ttf is maintained at https://github.com/silnrsi/font-keymanweb-osk unit_tests Automated testing resources - intermediate Intermediate compiled code; TypeScript source is compiled here before it is minified. - release/web Fully-compiled KeymanWeb modules for testing - release/embedded Fully-compiled KMEA/KMEI modules for inclusion in mobile app builds - release/unminified/web Fully-compiled but non-minified KeymanWeb modules - release/unminified/embedded Fully-compiled KMEA/KMEI modules for inclusion in mobile app builds + build/web/release Fully-compiled KeymanWeb modules for testing + build/embed/release Fully-compiled KMEA/KMEI modules for inclusion in mobile app builds + build/web/debug Fully-compiled but non-minified KeymanWeb modules + build/web/release Fully-compiled KMEA/KMEI modules for inclusion in mobile app builds samples Sample pages demonstrating ways to link with KeymanWeb testing Test-case web-pages for various aspects of KeymanWeb functionality @@ -35,29 +34,7 @@ Refer to the samples for usage details. To view pages using compiled Keyman Engine for Web, 1. cd to **keyman/web/source** 2. Run `./build.sh` - -### `build.sh` options: - -* `-ui` - - to compile desktop user interface modules to output folder -* `-test` - - to compile for testing without copying resources or updating the saved - version number. -* `-embed` - - to compile only the KMEA/KMEI embedded engine. -* `-web` - - to compile only the KeymanWeb engine. -* `-debug_embedded` - - to compile a readable version of the embedded KMEA/KMEI code -* `-no_minify` - - to disable the minified '/release/web' and '/release/embedded' build - sections. - - the '/release/unminified/web' and '/release/unminified/embedded' folders - will still be built. -* `-clean` - - to erase pre-existing build products before the build. - -If more than one target is specified, the last one will take precedence. + - Use `./build.sh --help` for the script's documentation. ### Unit Testing ### @@ -74,7 +51,7 @@ the former command executes. `describe.only`. 2. From this directory, run `./unit_tests/test.sh -debug`. Alternatively, from `web/` or any `web/` subdirectory, - + ``` npm run test -- -debug ``` diff --git a/web/bulk_rendering/index.html b/web/bulk_rendering/index.html index 0329672159..fe181d4fad 100644 --- a/web/bulk_rendering/index.html +++ b/web/bulk_rendering/index.html @@ -26,7 +26,7 @@ - + diff --git a/web/samples/minified.html b/web/samples/minified.html index 47466451d9..b980e57ed9 100644 --- a/web/samples/minified.html +++ b/web/samples/minified.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Fully Compiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + + - - + +

KeymanWeb Sample Page - Fully Compiled/Minified Source

- -
+

Type in your language in this text area:

- +

or in this input field:

- +

Add a keyboard by keyboard name:

- +

Add a keyboard by BCP-47 language code:

Add a keyboard by language name:

- +

Return to samples home page

- - + * + *** + --> diff --git a/web/samples/multilingual.html b/web/samples/multilingual.html index d4646c5357..6ac0556dba 100644 --- a/web/samples/multilingual.html +++ b/web/samples/multilingual.html @@ -2,30 +2,30 @@ - - + + - + - + - - + + KeymanWeb Multilingual Sample Page - - - - - + #KeymanWebControl {width:50%; min-width:600px;} + + + + - - + + - - + - - - + + +

KeymanWeb Multilingual Page Example

- -
- +
+

Type in the following text area in your language:

- +

or in this input field:

- +

Return to samples home page

diff --git a/web/samples/unminified.html b/web/samples/unminified.html index ca24b402af..e604e3441f 100644 --- a/web/samples/unminified.html +++ b/web/samples/unminified.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Unminified Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

KeymanWeb Sample Page - Unminified Source

- -
+

Type in your language in this text area:

- +

or in this input field:

- +

Add a keyboard by keyboard name:

- +

Add a keyboard by BCP-47 language code:

Add a keyboard by language name:

- +

Return to samples home page

- - + * + *** + --> diff --git a/web/testing/android-harness/build.sh b/web/testing/android-harness/build.sh index 1fc7d93e52..45d6b3e9ce 100755 --- a/web/testing/android-harness/build.sh +++ b/web/testing/android-harness/build.sh @@ -10,10 +10,13 @@ THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BA THIS_DIR="$(dirname "$THIS_SCRIPT")" +# TODO: Convert this into the start of a test/manual/embed section when reworking the Web test +# page organization. + mkdir -p "$THIS_DIR/host" cp -R "$KEYMAN_ROOT/android/KMEA/app/src/main/assets/"* "$THIS_DIR/host/" -cp "$KEYMAN_ROOT/web/release/unminified/embedded/keyman.js" "$THIS_DIR/host/keymanandroid.js" -cp "$KEYMAN_ROOT/web/release/unminified/embedded/keyman.js.map" "$THIS_DIR/host/keyman.js.map" +cp "$KEYMAN_ROOT/web/build/embed/debug/keyman.js" "$THIS_DIR/host/keymanandroid.js" +cp "$KEYMAN_ROOT/web/build/embed/debug/keyman.js.map" "$THIS_DIR/host/keyman.js.map" # Test keyboards diff --git a/web/testing/attachment-api/index.html b/web/testing/attachment-api/index.html index 69fb497c15..3764f39ceb 100644 --- a/web/testing/attachment-api/index.html +++ b/web/testing/attachment-api/index.html @@ -23,7 +23,7 @@ - + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + - +

KeymanWeb: Test IFrame connectivity

- -
+

This test page exists for IFrame functionality tests.


-
+

Return to testing home page

- - + + - - + * + *** + --> diff --git a/web/testing/build-visual-keyboard/index.html b/web/testing/build-visual-keyboard/index.html index ac1d473dc5..9c193ff367 100644 --- a/web/testing/build-visual-keyboard/index.html +++ b/web/testing/build-visual-keyboard/index.html @@ -2,44 +2,44 @@ - - - + + + - + - - + + KeymanWeb Testing Page - Basic IFrames - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + - +

KeymanWeb: Keyboard documentation rendering

- -
+

This test page exists for testing KMW's keyboard-documentation rendering system.


-
+

Return to testing home page

- - + + - - + * + *** + --> diff --git a/web/testing/caps-lock-layer-3620/index.html b/web/testing/caps-lock-layer-3620/index.html index 9acf2881be..386327ca82 100644 --- a/web/testing/caps-lock-layer-3620/index.html +++ b/web/testing/caps-lock-layer-3620/index.html @@ -17,7 +17,7 @@ - + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

KeymanWeb Sample Page - Chirality Testing

This page is designed to stress-test the new support for chiral modifiers and state keys.

Be sure to reference the developer console for additional feedback.


- + * + *** + --> diff --git a/web/testing/ckeditor/index.html b/web/testing/ckeditor/index.html index a7555db699..78b61cd95f 100644 --- a/web/testing/ckeditor/index.html +++ b/web/testing/ckeditor/index.html @@ -17,7 +17,7 @@ - + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - + - + + - - + +

KeymanWeb Testing Page - Desktop UI module Testing

This page is designed to facilitate testing of various aspects of the Button UI for KeymanWeb. @@ -62,16 +62,16 @@

  • Toolbar UI
  • - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -79,20 +79,20 @@
    - - + * + *** + --> diff --git a/web/testing/desktop-ui/float.html b/web/testing/desktop-ui/float.html index e15381a032..bf65b21681 100644 --- a/web/testing/desktop-ui/float.html +++ b/web/testing/desktop-ui/float.html @@ -2,41 +2,41 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Unminified Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - + - + + - - + +

    KeymanWeb Testing Page - Desktop UI module Testing

    This page is designed to facilitate testing of various aspects of the Float UI for KeymanWeb. @@ -61,10 +61,10 @@

  • Toggle UI
  • Toolbar UI
  • -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -72,20 +72,20 @@
    - - + * + *** + --> diff --git a/web/testing/desktop-ui/toggle.html b/web/testing/desktop-ui/toggle.html index 9f7f79df7c..c7f3e4c043 100644 --- a/web/testing/desktop-ui/toggle.html +++ b/web/testing/desktop-ui/toggle.html @@ -2,41 +2,41 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Unminified Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - + - + + - - + +

    KeymanWeb Testing Page - Desktop UI module Testing

    This page is designed to facilitate testing of various aspects of the Toggle UI for KeymanWeb. @@ -61,10 +61,10 @@

  • Toggle UI (you are here)
  • Toolbar UI
  • -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -72,20 +72,20 @@
    - - + * + *** + --> diff --git a/web/testing/desktop-ui/toolbar.html b/web/testing/desktop-ui/toolbar.html index b7f0d3432f..a601ce2dd0 100644 --- a/web/testing/desktop-ui/toolbar.html +++ b/web/testing/desktop-ui/toolbar.html @@ -2,49 +2,49 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Unminified Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + +

    KeymanWeb Testing Page - Desktop UI module Testing

    This page is designed to facilitate testing of various aspects of the Toolbar UI for KeymanWeb. Originally developed to help address issue #1275. @@ -57,16 +57,16 @@

  • Toolbar UI (you are here)
  • - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -74,20 +74,20 @@
    - - + * + *** + --> diff --git a/web/testing/empty-row/index.html b/web/testing/empty-row/index.html index c53b4dad5e..f333fcbd17 100644 --- a/web/testing/empty-row/index.html +++ b/web/testing/empty-row/index.html @@ -23,7 +23,7 @@ - + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb Sample Page - Keyboard Registration Check

    This page is designed to test KeymanWeb's behavior when being told to load a keyboard multiple times, both via @@ -57,51 +57,51 @@

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Add a keyboard by keyboard name:

    - +

    Add a keyboard by BCP-47 language code:

    Add a keyboard by language name:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/issue115/index.html b/web/testing/issue115/index.html index b5b5b770d8..38cabcfb37 100644 --- a/web/testing/issue115/index.html +++ b/web/testing/issue115/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - - + + + - - + +

    KeymanWeb: Long-press on numeric and symbolic layer testing

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/issue116/index.html b/web/testing/issue116/index.html index 1b08ac3126..2f7f269de0 100644 --- a/web/testing/issue116/index.html +++ b/web/testing/issue116/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - - + + + - - + +

    KeymanWeb: Next-layer processing testing

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/issue1332/index.html b/web/testing/issue1332/index.html index e2d6110f47..d45947722b 100644 --- a/web/testing/issue1332/index.html +++ b/web/testing/issue1332/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Issue 1332 - Mixed case of TTF files - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb Sample Page - Mixed Case of TTF font files

    Previously, KMW was not applying .TTF fonts on mobile devices.

    -

    See issue #1332 +

    See issue #1332 for details on what this test is all about.


    - + * + *** + --> diff --git a/web/testing/issue160/index.html b/web/testing/issue160/index.html index 74d8a2b5d6..9652558619 100644 --- a/web/testing/issue160/index.html +++ b/web/testing/issue160/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb #160 - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - - + + + - - + +

    KeymanWeb #160

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/issue266/index.html b/web/testing/issue266/index.html index 233c5e676a..c594ebd974 100644 --- a/web/testing/issue266/index.html +++ b/web/testing/issue266/index.html @@ -2,38 +2,38 @@ - + - + - + - - + + KeymanWeb #160 - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - - + + + - - + +

    KeymanWeb #266

    - + * + *** + --> diff --git a/web/testing/issue271/index.html b/web/testing/issue271/index.html index ad3a27775b..cb252c9c0d 100644 --- a/web/testing/issue271/index.html +++ b/web/testing/issue271/index.html @@ -2,56 +2,56 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + - +

    KeymanWeb: Test page for interactions between setActiveKeyboard and the toolbar UI

    - +

    This version is used to test the interactions of SetActiveKeyboard with the Toolbar UI.

    Automatically-loaded keyboard IDs:

      @@ -65,52 +65,52 @@

    - -
    +

    -
    +

    Set active keyboard:

    Keyboard id: , Language Code:

    - +
    - +

    Add a keyboard by keyboard name:

    - +

    Add a keyboard by BCP-47 language code:

    Add a keyboard by language name:

    - +

    Return to testing home page

    - - + + - - + * + *** + --> diff --git a/web/testing/issue29/index.html b/web/testing/issue29/index.html index 12e6b1e125..79165cc913 100644 --- a/web/testing/issue29/index.html +++ b/web/testing/issue29/index.html @@ -2,87 +2,87 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + - +

    KeymanWeb: Test desktop MutationObserver functionality

    - -
    +

    This version is used to test KeymanWeb's ability to cope with page mutations.


    -
    +

    Return to testing home page

    - - + + - - + * + *** + --> diff --git a/web/testing/issue2924/index.html b/web/testing/issue2924/index.html index 8f51a81270..d100e10988 100644 --- a/web/testing/issue2924/index.html +++ b/web/testing/issue2924/index.html @@ -6,8 +6,8 @@ KeymanWeb Issue 2924 - Variable Stores and Predictive Text - - + + diff --git a/web/testing/issue3701/index.html b/web/testing/issue3701/index.html index 4e30f4d118..fd6c7aedf2 100644 --- a/web/testing/issue3701/index.html +++ b/web/testing/issue3701/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Testing Page - Fat-Finger interactions with Beep feedback - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + +

    KeymanWeb Sample Page - Fat-finger Interactions with Beep Feedback

    Since erroneous input should not be considered with predictions & corrections, this page uses a US-style keyboard that prohibits use of the letter 'x'.

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -97,20 +97,20 @@
    - - + * + *** + --> diff --git a/web/testing/issue382/index.html b/web/testing/issue382/index.html index 4eb9e409af..42fc8a8b59 100644 --- a/web/testing/issue382/index.html +++ b/web/testing/issue382/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb #382 - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - - + + + - - + +

    KeymanWeb #382

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/issue53/index.html b/web/testing/issue53/index.html index 42d6e94c9e..ec91af8263 100644 --- a/web/testing/issue53/index.html +++ b/web/testing/issue53/index.html @@ -2,81 +2,81 @@ - - - + + + - + - - + + KeymanWeb Testing Page - Mismatched Layer Rows - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb: Tests layering transitions for keyboards with variable layer sizes.

    This test should be run from mobile devices or with Chrome's mobile device emulation settings available within Developer Mode.

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Add a keyboard by keyboard name:

    - +

    Add a keyboard by BCP-47 language code:

    Add a keyboard by language name:

    - +

    Remove a keyboard by keyboard name:

    @@ -86,20 +86,20 @@
    - - + * + *** + --> diff --git a/web/testing/issue5312-touch-alias-optimization/index.html b/web/testing/issue5312-touch-alias-optimization/index.html index 91730b0f55..9e8fcc4555 100644 --- a/web/testing/issue5312-touch-alias-optimization/index.html +++ b/web/testing/issue5312-touch-alias-optimization/index.html @@ -23,7 +23,7 @@ - + - + + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - +

    KeymanWeb: Light test for touch-based MutationObserver functionality

    - -
    +

    This version is used to test KeymanWeb's ability to cope with page mutations.


    -
    +

    Return to testing home page

    - - + + - - + * + *** + --> diff --git a/web/testing/issue63/index.html b/web/testing/issue63/index.html index a62b8cade4..a01cc45325 100644 --- a/web/testing/issue63/index.html +++ b/web/testing/issue63/index.html @@ -2,63 +2,63 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - +

    KeymanWeb: Test/stress-test touch-based MutationObserver functionality

    - -
    +

    This version is used to test KeymanWeb's ability to cope with page mutations.

    @@ -68,26 +68,26 @@
    -
    +

    Return to testing home page

    - - + + - - + * + *** + --> diff --git a/web/testing/issue917-context-and-notany/index.html b/web/testing/issue917-context-and-notany/index.html index b3417047b3..3e4548a2b6 100644 --- a/web/testing/issue917-context-and-notany/index.html +++ b/web/testing/issue917-context-and-notany/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Testing Page - context() and notany() interaction (#917) - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + +

    KeymanWeb Sample Page -context() and notany() interaction (#917)

    KeymanWeb did not support notany() and context() together. This keyboard tests various scenarios in the implementation (14.0 min):

    @@ -69,16 +69,16 @@
    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -88,20 +88,20 @@
    - - + * + *** + --> diff --git a/web/testing/issue920/index.html b/web/testing/issue920/index.html index 994339d1a2..64ff2b6c7b 100644 --- a/web/testing/issue920/index.html +++ b/web/testing/issue920/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Issue 920 - deadkeys and multiple groups - Testing - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + +

    KeymanWeb Sample Page - deadkeys and multiple groups Testing

    See issue #920 for details on what this test is all about. Both ;e and .e should produce ə but ;e uses a deadkey and fails.

    Be sure to reference the developer console for additional feedback.

    - +
    - + * + *** + --> diff --git a/web/testing/keyboard-errors/index.html b/web/testing/keyboard-errors/index.html index 913bc484d3..102bff41c3 100644 --- a/web/testing/keyboard-errors/index.html +++ b/web/testing/keyboard-errors/index.html @@ -2,87 +2,87 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Uncompiled Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb Sample Page - Error Testing page

    Pick one of the 'debugging' keyboards to test whether the represented error is handled correctly.

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/mnemonic/index.html b/web/testing/mnemonic/index.html index 29ac068a91..a36cad4c0f 100644 --- a/web/testing/mnemonic/index.html +++ b/web/testing/mnemonic/index.html @@ -2,45 +2,45 @@ - - - - + + + + - - + + KeymanWeb Testing Page - Basic Mnemonic Support - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb Sample Page - Platform Testing

    This page is designed to test the Platform statement for consistency. Refer to PR #969. @@ -60,7 +60,7 @@

    Be sure to reference the developer console for additional feedback.


    - + * + *** + --> diff --git a/web/testing/prediction-mtnt/index.html b/web/testing/prediction-mtnt/index.html index d66ea6adaf..e2cb6f3760 100644 --- a/web/testing/prediction-mtnt/index.html +++ b/web/testing/prediction-mtnt/index.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Testing Page - Predictive Text: robust testing - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + + - - + +

    KeymanWeb Sample Page - Predictive Text: robust testing

    This page is set to use a more complete, robust model than the UI-bootstrapping page.

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    @@ -98,20 +98,20 @@
    - - + * + *** + --> diff --git a/web/testing/prediction-ui/index.html b/web/testing/prediction-ui/index.html index b83351c30a..6bc298d81e 100644 --- a/web/testing/prediction-ui/index.html +++ b/web/testing/prediction-ui/index.html @@ -23,7 +23,7 @@ - + - + + - + diff --git a/web/testing/regression-tests/node_src/config.js b/web/testing/regression-tests/node_src/config.js index 3a8318f0b7..0dae8994fb 100644 --- a/web/testing/regression-tests/node_src/config.js +++ b/web/testing/regression-tests/node_src/config.js @@ -38,7 +38,7 @@ module.exports = { /** * Various relative paths */ - KEYMANWEB_RELATIVE_PATH: 'web/release/unminified/web', + KEYMANWEB_RELATIVE_PATH: 'web/build/web/debug', BASE_RELATIVE_PATH: '../../../../', KEYMAN_REPO_BASE_RELATIVE_PATH: '../../../', diff --git a/web/testing/rotation-events/index.html b/web/testing/rotation-events/index.html index f2ba6b4af4..94745c53ae 100644 --- a/web/testing/rotation-events/index.html +++ b/web/testing/rotation-events/index.html @@ -2,28 +2,28 @@ - + KeymanWeb Sample Page - Unminified Source - - + #KeymanWebControl {width:50%;min-width:600px;} + - - + + - - + - + + @@ -47,16 +47,16 @@ var lastW, lastH, lastO; //var lastOSKW, lastOSKH, lastVS; var noRecentChange = 100; - + function doLog(event, onlyIfChanged) { var orient = window.orientation; var orientText = ' w.o='; - + if(orient === undefined) { orient = window.screen.orientation.angle; orientText = ' w.soa='; } - + if(onlyIfChanged) { if(lastW == window.innerWidth && lastH == window.innerHeight && lastO == orient) { if(noRecentChange == 100) { @@ -69,26 +69,26 @@ lastH = window.innerHeight; lastO = orient; } - + e.value = e.value + event + ': w.iw='+window.innerWidth+' w.ih='+window.innerHeight+orientText+orient+'\n'; - + if(event == 'kmw.ri' || event == 'kmw.rh' || event == 'kmw.re') { e.value = e.value + ' osk.w=' + keyman.osk.computedWidth + ' osk.h=' + keyman.osk.computedHeight + ' kmw.vs=' + keyman.util.getViewportScale() + '\n'; } - + e.scrollTop = e.scrollHeight; noRecentChange = 0; } - + window.setInterval(function() { doLog('tick', true); }, 1); - + window.addEventListener('resize', function() { doLog('resize-b', false) }, false); window.addEventListener('resize', function() { doLog('resize-c', false) }, true); window.addEventListener('orientationchange', function() { doLog('orientationchange-b', false) }, false); window.addEventListener('orientationchange', function() { doLog('orientationchange-c', false) }, true); - + var kmw_ri = com.keyman.RotationManager.prototype.initNewRotation; com.keyman.RotationManager.prototype.initNewRotation = function() { doLog('kmw.ri'); diff --git a/web/testing/scrolling/index.html b/web/testing/scrolling/index.html index 6520a448c5..8b664cc2e5 100644 --- a/web/testing/scrolling/index.html +++ b/web/testing/scrolling/index.html @@ -24,7 +24,7 @@ - + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - + - + - + + - + - - + +

    KeymanWeb Sample Page - Sentry Setup test host

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Add a keyboard by keyboard name:

    - +

    Add a keyboard by BCP-47 language code:

    Add a keyboard by language name:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/spacebar-text/index.html b/web/testing/spacebar-text/index.html index 0d88b40782..05711c1bb3 100644 --- a/web/testing/spacebar-text/index.html +++ b/web/testing/spacebar-text/index.html @@ -17,7 +17,7 @@ - + - + + - + + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - - + + - - + +

    KeymanWeb Sample Page - Shift Testing

    See issue #978 for details on what this test is all about.

    Be sure to reference the developer console for additional feedback.

    - +
    - + * + *** + --> diff --git a/web/testing/unminified - manual.html b/web/testing/unminified - manual.html index 09e39ca797..b9534b856c 100644 --- a/web/testing/unminified - manual.html +++ b/web/testing/unminified - manual.html @@ -2,38 +2,38 @@ - - - + + + - + - - + + KeymanWeb Sample Page - Unminified Source - - - - - + #KeymanWebControl {width:50%;min-width:600px;} + - + + + - - + + - + + - + - - + +

    KeymanWeb Sample Page - Unminified Source

    - -
    +

    Type in your language in this text area:

    - +

    or in this input field:

    - +

    Add a keyboard by keyboard name:

    - +

    Add a keyboard by BCP-47 language code:

    Add a keyboard by language name:

    - +

    Return to testing home page

    - - + * + *** + --> diff --git a/web/testing/unminified.html b/web/testing/unminified.html index 8cefb8fe60..fb802172ae 100644 --- a/web/testing/unminified.html +++ b/web/testing/unminified.html @@ -23,7 +23,7 @@ - + - + - + + diff --git a/web/tools/s_keyman_com.sh b/web/tools/s_keyman_com.sh index 0e91853c7b..a85561f429 100755 --- a/web/tools/s_keyman_com.sh +++ b/web/tools/s_keyman_com.sh @@ -67,7 +67,7 @@ fi ## function upload_keyman_web { - local kmwpath="$KEYMAN_ROOT/web/release/web" + local kmwpath="$KEYMAN_ROOT/web/build/web/release" local dstpath="$S_KEYMAN_COM/kmw/engine/$VERSION/" # diff --git a/web/unit_tests/base.conf.js b/web/unit_tests/base.conf.js index 8ae6626be8..00bc5fe4de 100644 --- a/web/unit_tests/base.conf.js +++ b/web/unit_tests/base.conf.js @@ -49,19 +49,19 @@ module.exports = { 'common/test/resources/json/**/*.json', // Where pre-loaded JSON resides. {pattern: 'common/test/resources/fixtures/**/*.html', watched: true}, // HTML structures useful for testing. {pattern: 'common/test/resources/**/*.*', watched: true, served: true, included: false}, // General testing resources. - {pattern: 'web/release/unminified/web/**/*.css', watched: false, served: true, included: false}, // OSK resources - {pattern: 'web/release/unminified/web/**/*.gif', watched: false, served: true, included: false}, // OSK resources - {pattern: 'web/release/unminified/web/**/*.png', watched: false, served: true, included: false}, // OSK resources - {pattern: 'web/release/unminified/web/**/*.ttf', watched: false, served: true, included: false}, // OSK resources - {pattern: 'web/release/unminified/web/*.js', watched: true, served: true, included: false}, // The actual KMW code. - {pattern: 'web/release/unminified/web/*.map', watched: true, served: true, included: false}, // + sourcemaps. + {pattern: 'web/build/web/debug/**/*.css', watched: false, served: true, included: false}, // OSK resources + {pattern: 'web/build/web/debug/**/*.gif', watched: false, served: true, included: false}, // OSK resources + {pattern: 'web/build/web/debug/**/*.png', watched: false, served: true, included: false}, // OSK resources + {pattern: 'web/build/web/debug/**/*.ttf', watched: false, served: true, included: false}, // OSK resources + {pattern: 'web/build/web/debug/*.js', watched: true, served: true, included: false}, // The actual KMW code. + {pattern: 'web/build/web/debug/*.map', watched: true, served: true, included: false}, // + sourcemaps. {pattern: 'web/tools/recorder/build/index.js.map', watched: true, served: true, included: false}, {pattern: 'web/tools/element-wrappers/build/index.js.map', watched: true, served: true, included: false}, {pattern: 'web/tools/device-detect/build/index.js.map', watched: true, served: true, included: false} ], proxies: { - "/source/": "/base/web/release/unminified/web/", + "/source/": "/base/web/build/web/debug/", "/resources/": "/base/common/test/resources/", "/source/recorder_InputEvents.js.map": "/base/common/tests/recorder_InputEvents.js.map" },