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="input"><input id="input2"><input id="input3"> | 6 <input id="input"><input id="input2"><input id="input3"> |
7 <script> | 7 <script> |
8 description('This tests composition attribute of InputMethodContext.'); | 8 description('This tests composition attribute of InputMethodContext.'); |
9 | 9 |
10 var input = document.getElementById('input'); | 10 var input = document.getElementById('input'); |
11 var input2 = document.getElementById('input2'); | 11 var input2 = document.getElementById('input2'); |
12 | 12 |
13 var context = input.inputMethodContext; | 13 var context = input.inputMethodContext; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 textInputController.setComposition('klmno'); | 59 textInputController.setComposition('klmno'); |
60 shouldBeEqualToString('input3.value', 'klmno'); | 60 shouldBeEqualToString('input3.value', 'klmno'); |
61 var context3 = input3.inputMethodContext; | 61 var context3 = input3.inputMethodContext; |
62 var composition3 = context3.composition; | 62 var composition3 = context3.composition; |
63 shouldBeEqualToString('composition3.text', 'klmno'); | 63 shouldBeEqualToString('composition3.text', 'klmno'); |
64 context3.confirmComposition(); | 64 context3.confirmComposition(); |
65 shouldBeEqualToString('composition3.text', ''); | 65 shouldBeEqualToString('composition3.text', ''); |
66 </script> | 66 </script> |
67 </body> | 67 </body> |
68 </html> | 68 </html> |
OLD | NEW |