blob: 591a5779228b2fc6a543aeca5aa52c4288abdc87 [file] [log] [blame]
This tests a subset of pseudo-kotoeri behaviour:
All keydown events never result in keypress during composition
During composition all keydown events should have keyCode 229, this is necessary to match the behaviour of windows browsers, including WebKit/Win
To test this manually switch to the Kotoeri/Hiragana input method, and type 'toukyou'<enter><enter>.
You should see only a single keypress event, as the very last reported event.
compositionstart
compositionupdate
keydown : keyCode == 229, key: t, isComposing: true
Received valid keydown event
keyup : keyCode == 84, key: t, isComposing: true
compositionupdate
keydown : keyCode == 229, key: o, isComposing: true
Received valid keydown event
keyup : keyCode == 79, key: o, isComposing: true
compositionupdate
keydown : keyCode == 229, key: u, isComposing: true
Received valid keydown event
keyup : keyCode == 85, key: u, isComposing: true
compositionupdate
keydown : keyCode == 229, key: k, isComposing: true
Received valid keydown event
keyup : keyCode == 75, key: k, isComposing: true
compositionupdate
keydown : keyCode == 229, key: y, isComposing: true
Received valid keydown event
keyup : keyCode == 89, key: y, isComposing: true
compositionupdate
keydown : keyCode == 229, key: o, isComposing: true
Received valid keydown event
keyup : keyCode == 79, key: o, isComposing: true
compositionupdate
keydown : keyCode == 229, key: u, isComposing: true
Received valid keydown event
keyup : keyCode == 85, key: u, isComposing: true
compositionend
keydown : keyCode == 229, key: Enter, isComposing: false
Received valid keydown event
keyup : keyCode == 13, key: Enter, isComposing: false
keydown : keyCode == 13, key: Enter, isComposing: false
Received valid keydown event
Received valid keypress event
keyup : keyCode == 13, key: Enter, isComposing: false
PASSED: Successfully typed 'toukyou'