mediawiki-extensions-Visual.../modules/ve/test/ce/imetests/leftarrow-firefox-ubuntu-none.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

15 lines
872 B
JavaScript

ve.ce.imetests.push( [ 'leftarrow-firefox-ubuntu-none', [
/*jshint quotmark:double */
{"imeIdentifier":"none","userAgent":"Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Firefox/24.0","startDom":""},
{"seq":0,"time":7.941,"action":"changeText","args":["𨋢"]},
{"seq":1,"time":7.941,"action":"changeSel","args":[2,2]},
{"seq":2,"time":7.941,"action":"sendEvent","args":["input",{}]},
{"seq":3,"time":8.004,"action":"endLoop","args":[]},
{"seq":4,"time":9.64,"action":"sendEvent","args":["keydown",{"keyCode":37}]},
{"seq":5,"time":9.642,"action":"sendEvent","args":["keypress",{"keyCode":37}]},
{"seq":6,"time":9.652,"action":"changeSel","args":[0,0]},
{"seq":7,"time":9.652,"action":"endLoop","args":[]},
{"seq":8,"time":9.722,"action":"sendEvent","args":["keyup",{"keyCode":37}]},
{"seq":9,"time":9.726,"action":"endLoop","args":[]}
] ] );