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"> | 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 |
11 var test = document.getElementById('test'); | 11 var test = document.getElementById('test'); |
12 var test2 = document.getElementById('test2'); | 12 var test2 = document.getElementById('test2'); |
13 | 13 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |