mediawiki-extensions-Visual.../modules/ve/test/ce/imetests/input-firefox-ubuntu-ibus-japanese-anthy--hiraganaonly.js
David Chan b4f4eeb4b6 Event Logger: collect IME functionality info
ve/ce/SurfaceObserver.js
* Do not setTimeout if frequency === null

demos/ve/eventLogger.html
* Standalone event logging script

ve/test/ce/imetests/*.js
* JSON event logs for various tests/browsers/IMEs

ve/test/ce/ve.ce.test.js
* Add an IME test

VisualEditor.hooks.php
* Add test files

Change-Id: I50e89d5a289f3fcb4fe2a6835a2ec96fb497242c
2013-11-25 16:56:09 +00:00

132 lines
8.7 KiB
JavaScript

ve.ce.imetests.push( [ 'input-firefox-ubuntu-ibus-japanese-anthy--hiraganaonly', [
/*jshint quotmark:double */
{"imeIdentifier":"ibus Japanese anthy","userAgent":"Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Firefox/24.0","startDom":""},
{"seq":0,"time":28.149,"action":"sendEvent","args":["compositionstart",{}]},
{"seq":1,"time":28.157,"action":"changeText","args":["n"]},
{"seq":2,"time":28.157,"action":"changeSel","args":[1,1]},
{"seq":3,"time":28.157,"action":"sendEvent","args":["input",{}]},
{"seq":4,"time":28.178,"action":"endLoop","args":[]},
{"seq":5,"time":28.305,"action":"sendEvent","args":["input",{}]},
{"seq":6,"time":28.309,"action":"changeText","args":["な"]},
{"seq":7,"time":28.309,"action":"sendEvent","args":["input",{}]},
{"seq":8,"time":28.316,"action":"endLoop","args":[]},
{"seq":9,"time":28.508,"action":"sendEvent","args":["input",{}]},
{"seq":10,"time":28.512,"action":"changeText","args":["なm"]},
{"seq":11,"time":28.512,"action":"changeSel","args":[2,2]},
{"seq":12,"time":28.512,"action":"sendEvent","args":["input",{}]},
{"seq":13,"time":28.532,"action":"endLoop","args":[]},
{"seq":14,"time":28.661,"action":"sendEvent","args":["input",{}]},
{"seq":15,"time":28.665,"action":"changeText","args":["なま"]},
{"seq":16,"time":28.665,"action":"sendEvent","args":["input",{}]},
{"seq":17,"time":28.68,"action":"endLoop","args":[]},
{"seq":18,"time":29.007,"action":"sendEvent","args":["input",{}]},
{"seq":19,"time":29.012,"action":"changeText","args":["なまm"]},
{"seq":20,"time":29.012,"action":"changeSel","args":[3,3]},
{"seq":21,"time":29.012,"action":"sendEvent","args":["input",{}]},
{"seq":22,"time":29.03,"action":"endLoop","args":[]},
{"seq":23,"time":29.307,"action":"sendEvent","args":["input",{}]},
{"seq":24,"time":29.315,"action":"changeText","args":["なまむ"]},
{"seq":25,"time":29.315,"action":"sendEvent","args":["input",{}]},
{"seq":26,"time":29.333,"action":"endLoop","args":[]},
{"seq":27,"time":29.519,"action":"sendEvent","args":["input",{}]},
{"seq":28,"time":29.533,"action":"changeText","args":["なまむg"]},
{"seq":29,"time":29.533,"action":"changeSel","args":[4,4]},
{"seq":30,"time":29.533,"action":"sendEvent","args":["input",{}]},
{"seq":31,"time":29.614,"action":"endLoop","args":[]},
{"seq":32,"time":29.663,"action":"sendEvent","args":["input",{}]},
{"seq":33,"time":29.672,"action":"changeText","args":["なまむぎ"]},
{"seq":34,"time":29.672,"action":"sendEvent","args":["input",{}]},
{"seq":35,"time":29.717,"action":"endLoop","args":[]},
{"seq":36,"time":29.955,"action":"sendEvent","args":["input",{}]},
{"seq":37,"time":29.963,"action":"changeText","args":["なまむぎ、"]},
{"seq":38,"time":29.963,"action":"changeSel","args":[5,5]},
{"seq":39,"time":29.963,"action":"sendEvent","args":["input",{}]},
{"seq":40,"time":30.01,"action":"endLoop","args":[]},
{"seq":41,"time":30.35,"action":"sendEvent","args":["input",{}]},
{"seq":42,"time":30.358,"action":"changeText","args":["なまむぎ、n"]},
{"seq":43,"time":30.358,"action":"changeSel","args":[6,6]},
{"seq":44,"time":30.358,"action":"sendEvent","args":["input",{}]},
{"seq":45,"time":30.407,"action":"endLoop","args":[]},
{"seq":46,"time":30.574,"action":"sendEvent","args":["input",{}]},
{"seq":47,"time":30.582,"action":"changeText","args":["なまむぎ、な"]},
{"seq":48,"time":30.582,"action":"sendEvent","args":["input",{}]},
{"seq":49,"time":30.627,"action":"endLoop","args":[]},
{"seq":50,"time":30.781,"action":"sendEvent","args":["input",{}]},
{"seq":51,"time":30.79,"action":"changeText","args":["なまむぎ、なm"]},
{"seq":52,"time":30.79,"action":"changeSel","args":[7,7]},
{"seq":53,"time":30.79,"action":"sendEvent","args":["input",{}]},
{"seq":54,"time":30.842,"action":"endLoop","args":[]},
{"seq":55,"time":30.902,"action":"sendEvent","args":["input",{}]},
{"seq":56,"time":30.912,"action":"changeText","args":["なまむぎ、なま"]},
{"seq":57,"time":30.912,"action":"sendEvent","args":["input",{}]},
{"seq":58,"time":30.958,"action":"endLoop","args":[]},
{"seq":59,"time":31.112,"action":"sendEvent","args":["input",{}]},
{"seq":60,"time":31.122,"action":"changeText","args":["なまむぎ、なまg"]},
{"seq":61,"time":31.122,"action":"changeSel","args":[8,8]},
{"seq":62,"time":31.122,"action":"sendEvent","args":["input",{}]},
{"seq":63,"time":31.175,"action":"endLoop","args":[]},
{"seq":64,"time":31.319,"action":"sendEvent","args":["input",{}]},
{"seq":65,"time":31.337,"action":"changeText","args":["なまむぎ、なまご"]},
{"seq":66,"time":31.337,"action":"sendEvent","args":["input",{}]},
{"seq":67,"time":31.398,"action":"endLoop","args":[]},
{"seq":68,"time":31.715,"action":"sendEvent","args":["input",{}]},
{"seq":69,"time":31.726,"action":"changeText","args":["なまむぎ、なまごm"]},
{"seq":70,"time":31.726,"action":"changeSel","args":[9,9]},
{"seq":71,"time":31.726,"action":"sendEvent","args":["input",{}]},
{"seq":72,"time":31.784,"action":"endLoop","args":[]},
{"seq":73,"time":32.066,"action":"sendEvent","args":["input",{}]},
{"seq":74,"time":32.077,"action":"changeText","args":["なまむぎ、なまごめ"]},
{"seq":75,"time":32.077,"action":"sendEvent","args":["input",{}]},
{"seq":76,"time":32.129,"action":"endLoop","args":[]},
{"seq":77,"time":32.357,"action":"sendEvent","args":["input",{}]},
{"seq":78,"time":32.369,"action":"changeText","args":["なまむぎ、なまごめ、"]},
{"seq":79,"time":32.369,"action":"changeSel","args":[10,10]},
{"seq":80,"time":32.369,"action":"sendEvent","args":["input",{}]},
{"seq":81,"time":32.432,"action":"endLoop","args":[]},
{"seq":82,"time":32.64,"action":"sendEvent","args":["input",{}]},
{"seq":83,"time":32.652,"action":"changeText","args":["なまむぎ、なまごめ、n"]},
{"seq":84,"time":32.652,"action":"changeSel","args":[11,11]},
{"seq":85,"time":32.652,"action":"sendEvent","args":["input",{}]},
{"seq":86,"time":32.717,"action":"endLoop","args":[]},
{"seq":87,"time":32.783,"action":"sendEvent","args":["input",{}]},
{"seq":88,"time":32.796,"action":"changeText","args":["なまむぎ、なまごめ、な"]},
{"seq":89,"time":32.796,"action":"sendEvent","args":["input",{}]},
{"seq":90,"time":32.853,"action":"endLoop","args":[]},
{"seq":91,"time":32.99,"action":"sendEvent","args":["input",{}]},
{"seq":92,"time":33.003,"action":"changeText","args":["なまむぎ、なまごめ、なm"]},
{"seq":93,"time":33.003,"action":"changeSel","args":[12,12]},
{"seq":94,"time":33.003,"action":"sendEvent","args":["input",{}]},
{"seq":95,"time":33.072,"action":"endLoop","args":[]},
{"seq":96,"time":33.227,"action":"sendEvent","args":["input",{}]},
{"seq":97,"time":33.242,"action":"changeText","args":["なまむぎ、なまごめ、なま"]},
{"seq":98,"time":33.242,"action":"sendEvent","args":["input",{}]},
{"seq":99,"time":33.301,"action":"endLoop","args":[]},
{"seq":100,"time":34.093,"action":"sendEvent","args":["input",{}]},
{"seq":101,"time":34.107,"action":"changeText","args":["なまむぎ、なまごめ、なまt"]},
{"seq":102,"time":34.107,"action":"changeSel","args":[13,13]},
{"seq":103,"time":34.107,"action":"sendEvent","args":["input",{}]},
{"seq":104,"time":34.181,"action":"endLoop","args":[]},
{"seq":105,"time":34.324,"action":"sendEvent","args":["input",{}]},
{"seq":106,"time":34.339,"action":"changeText","args":["なまむぎ、なまごめ、なまた"]},
{"seq":107,"time":34.339,"action":"sendEvent","args":["input",{}]},
{"seq":108,"time":34.444,"action":"endLoop","args":[]},
{"seq":109,"time":34.591,"action":"sendEvent","args":["input",{}]},
{"seq":110,"time":34.607,"action":"changeText","args":["なまむぎ、なまごめ、なまたm"]},
{"seq":111,"time":34.607,"action":"changeSel","args":[14,14]},
{"seq":112,"time":34.607,"action":"sendEvent","args":["input",{}]},
{"seq":113,"time":34.682,"action":"endLoop","args":[]},
{"seq":114,"time":34.745,"action":"sendEvent","args":["input",{}]},
{"seq":115,"time":34.761,"action":"changeText","args":["なまむぎ、なまごめ、なまたま"]},
{"seq":116,"time":34.761,"action":"sendEvent","args":["input",{}]},
{"seq":117,"time":34.829,"action":"endLoop","args":[]},
{"seq":118,"time":35.007,"action":"sendEvent","args":["input",{}]},
{"seq":119,"time":35.024,"action":"changeText","args":["なまむぎ、なまごめ、なまたまg"]},
{"seq":120,"time":35.024,"action":"changeSel","args":[15,15]},
{"seq":121,"time":35.024,"action":"sendEvent","args":["input",{}]},
{"seq":122,"time":35.103,"action":"endLoop","args":[]},
{"seq":123,"time":35.327,"action":"sendEvent","args":["input",{}]},
{"seq":124,"time":35.345,"action":"changeText","args":["なまむぎ、なまごめ、なまたまご"]},
{"seq":125,"time":35.345,"action":"sendEvent","args":["input",{}]},
{"seq":126,"time":35.412,"action":"endLoop","args":[]}
] ] );