| OLD | NEW |
| (Empty) |
| 1 This tests that DOM L3 CompositionEvent segment related properties. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Case 1: Test from empty input field. | |
| 7 PASS event.type is "compositionstart" | |
| 8 PASS event.data is "" | |
| 9 PASS event.activeSegmentStart is 0 | |
| 10 PASS event.activeSegmentEnd is 3 | |
| 11 PASS segments.length is 2 | |
| 12 PASS segments[i] is 0 | |
| 13 PASS segments[i] is 3 | |
| 14 PASS event.type is "compositionupdate" | |
| 15 PASS event.data is "abcdefghi" | |
| 16 PASS event.activeSegmentStart is 0 | |
| 17 PASS event.activeSegmentEnd is 3 | |
| 18 PASS segments.length is 2 | |
| 19 PASS segments[i] is 0 | |
| 20 PASS segments[i] is 3 | |
| 21 PASS event.type is "compositionupdate" | |
| 22 PASS event.data is "abcdefghi" | |
| 23 PASS event.activeSegmentStart is 3 | |
| 24 PASS event.activeSegmentEnd is 6 | |
| 25 PASS segments.length is 3 | |
| 26 PASS segments[i] is 0 | |
| 27 PASS segments[i] is 3 | |
| 28 PASS segments[i] is 6 | |
| 29 PASS event.type is "compositionupdate" | |
| 30 PASS event.data is "abcdefghi" | |
| 31 PASS event.activeSegmentStart is 6 | |
| 32 PASS event.activeSegmentEnd is 9 | |
| 33 PASS segments.length is 2 | |
| 34 PASS segments[i] is 0 | |
| 35 PASS segments[i] is 6 | |
| 36 PASS event.type is "compositionend" | |
| 37 PASS event.data is "abcdefghi" | |
| 38 PASS event.activeSegmentStart is 6 | |
| 39 PASS event.activeSegmentEnd is 9 | |
| 40 PASS segments.length is 2 | |
| 41 PASS segments[i] is 0 | |
| 42 PASS segments[i] is 6 | |
| 43 PASS test.value is "abcdefghi" | |
| 44 Case 2: Test from non-empty input field. | |
| 45 PASS event.type is "compositionstart" | |
| 46 PASS event.data is "" | |
| 47 PASS event.activeSegmentStart is 0 | |
| 48 PASS event.activeSegmentEnd is 3 | |
| 49 PASS segments.length is 2 | |
| 50 PASS segments[i] is 0 | |
| 51 PASS segments[i] is 3 | |
| 52 PASS event.type is "compositionupdate" | |
| 53 PASS event.data is "123456789" | |
| 54 PASS event.activeSegmentStart is 0 | |
| 55 PASS event.activeSegmentEnd is 3 | |
| 56 PASS segments.length is 2 | |
| 57 PASS segments[i] is 0 | |
| 58 PASS segments[i] is 3 | |
| 59 PASS event.type is "compositionupdate" | |
| 60 PASS event.data is "123456789" | |
| 61 PASS event.activeSegmentStart is 3 | |
| 62 PASS event.activeSegmentEnd is 6 | |
| 63 PASS segments.length is 3 | |
| 64 PASS segments[i] is 0 | |
| 65 PASS segments[i] is 3 | |
| 66 PASS segments[i] is 6 | |
| 67 PASS event.type is "compositionupdate" | |
| 68 PASS event.data is "123456789" | |
| 69 PASS event.activeSegmentStart is 6 | |
| 70 PASS event.activeSegmentEnd is 9 | |
| 71 PASS segments.length is 2 | |
| 72 PASS segments[i] is 0 | |
| 73 PASS segments[i] is 6 | |
| 74 PASS event.type is "compositionend" | |
| 75 PASS event.data is "123456789" | |
| 76 PASS event.activeSegmentStart is 6 | |
| 77 PASS event.activeSegmentEnd is 9 | |
| 78 PASS segments.length is 2 | |
| 79 PASS segments[i] is 0 | |
| 80 PASS segments[i] is 6 | |
| 81 PASS test.value is "abcdefghi123456789" | |
| 82 PASS successfullyParsed is true | |
| 83 | |
| 84 TEST COMPLETE | |
| 85 | |
| OLD | NEW |