| 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"> | 6 <input id="test"> |
| 7 <input id="test2"> | 7 <input id="test2"> |
| 8 <script> | 8 <script> |
| 9 description("This tests confirmComposition() of InputMethodContext."); | 9 description("This tests confirmComposition() of InputMethodContext."); |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 test.focus(); | 56 test.focus(); |
| 57 expectedText = 'ijkl'; | 57 expectedText = 'ijkl'; |
| 58 textInputController.setComposition(expectedText); | 58 textInputController.setComposition(expectedText); |
| 59 // As composition for context2 is not on-going, no events will fire. | 59 // As composition for context2 is not on-going, no events will fire. |
| 60 context2.confirmComposition(); | 60 context2.confirmComposition(); |
| 61 // Cancel the composition. | 61 // Cancel the composition. |
| 62 expectedText = ''; | 62 expectedText = ''; |
| 63 textInputController.setComposition(expectedText); | 63 textInputController.setComposition(expectedText); |
| 64 shouldBeEqualToString('test.value', 'abcdefgh'); | 64 shouldBeEqualToString('test.value', 'abcdefgh'); |
| 65 </script> | 65 </script> |
| 66 <script src="../js/resources/js-test-post.js"></script> | |
| 67 </body> | 66 </body> |
| 68 </html> | 67 </html> |
| OLD | NEW |