OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <input id="test" type="text"> | 6 <input id="test" type="text"> |
7 <script> | 7 <script> |
8 description('This tests that calling input-method functions sends Composition Ev
ents and Text Events introduced in DOM Level 3. ' + | 8 description('This tests that calling input-method functions sends Composition Ev
ents and Text Events introduced in DOM Level 3. ' + |
9 'To test manually, enable an IME, input CJK characters, and see this page doesn\
't show \'FAIL\' lines.'); | 9 'To test manually, enable an IME, input CJK characters, and see this page doesn\
't show \'FAIL\' lines.'); |
10 </script> | 10 </script> |
11 <script> | 11 <script> |
12 function logCompositionStart(event) { | 12 function logCompositionStart(event) { |
13 shouldBeEqualToString('event.type', 'compositionstart'); | 13 shouldBeEqualToString('event.type', 'compositionstart'); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Case 5: Compose a text on selection and commit it. | 60 // Case 5: Compose a text on selection and commit it. |
61 test.value = 'I have a pen'; | 61 test.value = 'I have a pen'; |
62 test.selectionStart = 2; | 62 test.selectionStart = 2; |
63 test.selectionEnd = 6; | 63 test.selectionEnd = 6; |
64 textInputController.setMarkedText('lost', 0, 1); | 64 textInputController.setMarkedText('lost', 0, 1); |
65 textInputController.insertText('made'); | 65 textInputController.insertText('made'); |
66 shouldBeEqualToString('test.value', 'I made a pen'); | 66 shouldBeEqualToString('test.value', 'I made a pen'); |
67 </script> | 67 </script> |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |