| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.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> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 textInputController.unmarkText(); | 58 textInputController.unmarkText(); |
| 59 | 59 |
| 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 <script src="../js/resources/js-test-post.js"></script> | |
| 69 </body> | 68 </body> |
| 70 </html> | 69 </html> |
| OLD | NEW |