Divec has uploaded a new change for review. https://gerrit.wikimedia.org/r/221800
Change subject: IME tests for Ubuntu IBus Japanese Mozc ...................................................................... IME tests for Ubuntu IBus Japanese Mozc Change-Id: I18708715a0733fcd6b9f486d9c33d241daa26783 --- A tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-mozc.js A tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-mozc.js M tests/index.html 3 files changed, 127 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/00/221800/1 diff --git a/tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-mozc.js b/tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-mozc.js new file mode 100644 index 0000000..c319369 --- /dev/null +++ b/tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-mozc.js @@ -0,0 +1,80 @@ +/*! + * VisualEditor IME test for Chromium on Ubuntu in Japanese using iBus Mozc. + * + * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org + */ + +ve.ce.imetests.push( [ 'input-chromium-ubuntu-ibus-japanese-mozc', [ + { imeIdentifier: 'ibus Japanese mozc', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/43.0.2357.81 Chrome/43.0.2357.81 Safari/537.36', startDom: '' }, + { seq: 0, time: 18.743, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 1, time: 18.745, action: 'sendEvent', args: [ 'compositionstart', { } ] }, + { seq: 2, time: 18.747, action: 'changeText', args: [ 'n' ] }, + { seq: 3, time: 18.747, action: 'changeSel', args: [ 0, 1 ] }, + { seq: 4, time: 18.747, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 5, time: 18.752, action: 'changeSel', args: [ 1, 1 ] }, + { seq: 6, time: 18.752, action: 'endLoop', args: [] }, + { seq: 7, time: 18.87, action: 'sendEvent', args: [ 'keyup', { keyCode: 78 } ] }, + { seq: 8, time: 18.874, action: 'endLoop', args: [] }, + { seq: 9, time: 19.722, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 10, time: 19.724, action: 'changeText', args: [ 'に' ] }, + { seq: 11, time: 19.724, action: 'changeSel', args: [ 0, 1 ] }, + { seq: 12, time: 19.724, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 13, time: 19.729, action: 'changeSel', args: [ 1, 1 ] }, + { seq: 14, time: 19.729, action: 'endLoop', args: [] }, + { seq: 15, time: 19.854, action: 'sendEvent', args: [ 'keyup', { keyCode: 73 } ] }, + { seq: 16, time: 19.858, action: 'endLoop', args: [] }, + { seq: 17, time: 20.573, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 18, time: 20.575, action: 'changeText', args: [ 'にh' ] }, + { seq: 19, time: 20.575, action: 'changeSel', args: [ 0, 2 ] }, + { seq: 20, time: 20.575, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 21, time: 20.58, action: 'changeSel', args: [ 2, 2 ] }, + { seq: 22, time: 20.58, action: 'endLoop', args: [] }, + { seq: 23, time: 20.689, action: 'sendEvent', args: [ 'keyup', { keyCode: 72 } ] }, + { seq: 24, time: 20.692, action: 'endLoop', args: [] }, + { seq: 25, time: 21.477, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 26, time: 21.48, action: 'changeText', args: [ 'にほ' ] }, + { seq: 27, time: 21.48, action: 'changeSel', args: [ 0, 2 ] }, + { seq: 28, time: 21.48, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 29, time: 21.485, action: 'changeSel', args: [ 2, 2 ] }, + { seq: 30, time: 21.485, action: 'endLoop', args: [] }, + { seq: 31, time: 21.594, action: 'sendEvent', args: [ 'keyup', { keyCode: 79 } ] }, + { seq: 32, time: 21.597, action: 'endLoop', args: [] }, + { seq: 33, time: 22.305, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 34, time: 22.307, action: 'changeText', args: [ 'にほn' ] }, + { seq: 35, time: 22.307, action: 'changeSel', args: [ 0, 3 ] }, + { seq: 36, time: 22.307, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 37, time: 22.313, action: 'changeSel', args: [ 3, 3 ] }, + { seq: 38, time: 22.313, action: 'endLoop', args: [] }, + { seq: 39, time: 22.41, action: 'sendEvent', args: [ 'keyup', { keyCode: 78 } ] }, + { seq: 40, time: 22.415, action: 'endLoop', args: [] }, + { seq: 41, time: 23.104, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 42, time: 23.107, action: 'changeText', args: [ 'にほんg' ] }, + { seq: 43, time: 23.107, action: 'changeSel', args: [ 0, 4 ] }, + { seq: 44, time: 23.107, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 45, time: 23.113, action: 'changeSel', args: [ 4, 4 ] }, + { seq: 46, time: 23.113, action: 'endLoop', args: [] }, + { seq: 47, time: 23.214, action: 'sendEvent', args: [ 'keyup', { keyCode: 71 } ] }, + { seq: 48, time: 23.218, action: 'endLoop', args: [] }, + { seq: 49, time: 24.15, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 50, time: 24.153, action: 'changeText', args: [ 'にほんご' ] }, + { seq: 51, time: 24.153, action: 'changeSel', args: [ 0, 4 ] }, + { seq: 52, time: 24.153, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 53, time: 24.158, action: 'changeSel', args: [ 4, 4 ] }, + { seq: 54, time: 24.158, action: 'endLoop', args: [] }, + { seq: 55, time: 24.266, action: 'sendEvent', args: [ 'keyup', { keyCode: 79 } ] }, + { seq: 56, time: 24.27, action: 'endLoop', args: [] }, + { seq: 57, time: 25.258, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 58, time: 25.261, action: 'changeText', args: [ '日本語' ] }, + { seq: 59, time: 25.261, action: 'changeSel', args: [ 0, 3 ] }, + { seq: 60, time: 25.261, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 61, time: 25.267, action: 'changeSel', args: [ 0, 0 ] }, + { seq: 62, time: 25.267, action: 'endLoop', args: [] }, + { seq: 63, time: 25.38, action: 'sendEvent', args: [ 'keyup', { keyCode: 40 } ] }, + { seq: 64, time: 25.384, action: 'endLoop', args: [] }, + { seq: 65, time: 26.229, action: 'sendEvent', args: [ 'keydown', { keyCode: 229 } ] }, + { seq: 66, time: 26.232, action: 'changeSel', args: [ 0, 3 ] }, + { seq: 67, time: 26.232, action: 'sendEvent', args: [ 'compositionend', { } ] }, + { seq: 68, time: 26.236, action: 'changeSel', args: [ 3, 3 ] }, + { seq: 69, time: 26.236, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 70, time: 26.242, action: 'endLoop', args: [] } + ] ] ); diff --git a/tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-mozc.js b/tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-mozc.js new file mode 100644 index 0000000..72317b0 --- /dev/null +++ b/tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-mozc.js @@ -0,0 +1,45 @@ +/*! + * VisualEditor IME test for Firefox on Ubuntu in Japanese using iBus Mozc. + * + * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org + */ + +ve.ce.imetests.push( [ 'input-firefox-ubuntu-ibus-japanese-mozc', [ + { imeIdentifier: 'ibus Japanese mozc', userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv: 38.0) Gecko/20100101 Firefox/38.0', startDom: '' }, + { seq: 0, time: 5.394, action: 'sendEvent', args: [ 'compositionstart', { } ] }, + { seq: 1, time: 5.397, action: 'changeText', args: [ 'n' ] }, + { seq: 2, time: 5.397, action: 'changeSel', args: [ 1, 1 ] }, + { seq: 3, time: 5.397, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 4, time: 5.416, action: 'endLoop', args: [] }, + { seq: 5, time: 6.206, action: 'changeText', args: [ 'に' ] }, + { seq: 6, time: 6.206, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 7, time: 6.214, action: 'endLoop', args: [] }, + { seq: 8, time: 7.017, action: 'changeText', args: [ 'にh' ] }, + { seq: 9, time: 7.017, action: 'changeSel', args: [ 2, 2 ] }, + { seq: 10, time: 7.017, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 11, time: 7.022, action: 'endLoop', args: [] }, + { seq: 12, time: 7.712, action: 'changeText', args: [ 'にほ' ] }, + { seq: 13, time: 7.712, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 14, time: 7.716, action: 'endLoop', args: [] }, + { seq: 15, time: 8.526, action: 'changeText', args: [ 'にほn' ] }, + { seq: 16, time: 8.526, action: 'changeSel', args: [ 3, 3 ] }, + { seq: 17, time: 8.526, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 18, time: 8.532, action: 'endLoop', args: [] }, + { seq: 19, time: 9.196, action: 'changeText', args: [ 'にほんg' ] }, + { seq: 20, time: 9.196, action: 'changeSel', args: [ 4, 4 ] }, + { seq: 21, time: 9.196, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 22, time: 9.202, action: 'endLoop', args: [] }, + { seq: 23, time: 10.043, action: 'changeText', args: [ 'にほんご' ] }, + { seq: 24, time: 10.043, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 25, time: 10.048, action: 'endLoop', args: [] }, + { seq: 26, time: 10.798, action: 'changeText', args: [ '日本語' ] }, + { seq: 27, time: 10.798, action: 'changeSel', args: [ 0, 0 ] }, + { seq: 28, time: 10.798, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 29, time: 10.806, action: 'endLoop', args: [] }, + { seq: 30, time: 11.905, action: 'changeSel', args: [ 3, 3 ] }, + { seq: 31, time: 11.905, action: 'sendEvent', args: [ 'compositionend', { } ] }, + { seq: 32, time: 11.91, action: 'sendEvent', args: [ 'input', { } ] }, + { seq: 33, time: 11.913, action: 'endLoop', args: [] }, + { seq: 34, time: 12.027, action: 'sendEvent', args: [ 'keyup', { keyCode: 13 } ] }, + { seq: 35, time: 12.03, action: 'endLoop', args: [] } + ] ] ); diff --git a/tests/index.html b/tests/index.html index c91c215..9dbac1a 100644 --- a/tests/index.html +++ b/tests/index.html @@ -418,12 +418,14 @@ <script src="../tests/ce/imetests/input-chrome-win-welsh.js"></script> <script src="../tests/ce/imetests/input-chromium-ubuntu-ibus-chinese-cantonese.js"></script> <script src="../tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-anthy--hiraganaonly.js"></script> + <script src="../tests/ce/imetests/input-chromium-ubuntu-ibus-japanese-mozc.js"></script> <script src="../tests/ce/imetests/input-chromium-ubuntu-ibus-korean-korean.js"></script> <script src="../tests/ce/imetests/input-chromium-ubuntu-ibus-malayalam-swanalekha.js"></script> <script src="../tests/ce/imetests/input-firefox-mac-native-japanese-hiragana.js"></script> <script src="../tests/ce/imetests/input-firefox-mac-native-japanese-katakana.js"></script> <script src="../tests/ce/imetests/input-firefox-ubuntu-ibus-chinese-cantonese.js"></script> <script src="../tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-anthy--hiraganaonly.js"></script> + <script src="../tests/ce/imetests/input-firefox-ubuntu-ibus-japanese-mozc.js"></script> <script src="../tests/ce/imetests/input-firefox-ubuntu-ibus-korean-korean.js"></script> <script src="../tests/ce/imetests/input-firefox-ubuntu-ibus-malayalam.swanalekha.js"></script> <script src="../tests/ce/imetests/input-firefox-win-chinese-traditional-handwriting.js"></script> -- To view, visit https://gerrit.wikimedia.org/r/221800 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I18708715a0733fcd6b9f486d9c33d241daa26783 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Divec <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
