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"> | 6 <input id="input"> |
7 <script> | 7 <script> |
8 description('This tests a case that a Composition object outlives InputMethodCon
text.'); | 8 description('This tests a case that a Composition object outlives InputMethodCon
text.'); |
9 | 9 |
10 var input = document.getElementById('input'); | 10 var input = document.getElementById('input'); |
11 var context = input.inputMethodContext; | 11 var context = input.inputMethodContext; |
12 var composition = context.composition; | 12 var composition = context.composition; |
13 | 13 |
14 context = null; | 14 context = null; |
15 document.body.removeChild(input); | 15 document.body.removeChild(input); |
16 input = null; | 16 input = null; |
17 gc(); | 17 gc(); |
18 | 18 |
19 shouldEvaluateTo('composition.selectionEnd', 0); | 19 shouldEvaluateTo('composition.selectionEnd', 0); |
20 composition = null; | 20 composition = null; |
21 gc(); | 21 gc(); |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |