1 This tests that 'input' event listener gets correct caret position after keypress.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS test.selectionStart is 0
8 PASS test.selectionEnd is 0
10 PASS test.value is "a"
11 PASS test.selectionStart is 1
12 PASS test.selectionEnd is 1
14 PASS test.value is "ab"
15 PASS test.selectionStart is 2
16 PASS test.selectionEnd is 2
18 PASS test.value is "abc"
19 PASS test.selectionStart is 3
20 PASS test.selectionEnd is 3
22 PASS test.value is "ab"
23 PASS test.selectionStart is 2
24 PASS test.selectionEnd is 2
26 PASS test.value is "a"
27 PASS test.selectionStart is 1
28 PASS test.selectionEnd is 1
31 PASS test.selectionStart is 0
32 PASS test.selectionEnd is 0
34 PASS successfullyParsed is true