| 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="input"><input id="input2"> | 6 <input id="input"><input id="input2"> |
| 7 <script> | 7 <script> |
| 8 description("This tests inputMethodContext attribute which is an additional inte
rface for HTMLElement."); | 8 description("This tests inputMethodContext attribute which is an additional inte
rface for HTMLElement."); |
| 9 | 9 |
| 10 var html = document.documentElement; | 10 var html = document.documentElement; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Checks the same InputMethodContext objects are returned from an element. | 23 // Checks the same InputMethodContext objects are returned from an element. |
| 24 var context2 = html.inputMethodContext; | 24 var context2 = html.inputMethodContext; |
| 25 shouldBeTrue('context2 instanceof InputMethodContext'); | 25 shouldBeTrue('context2 instanceof InputMethodContext'); |
| 26 shouldBeTrue('context === context2'); | 26 shouldBeTrue('context === context2'); |
| 27 | 27 |
| 28 // Checks if contexts for different elements are different. | 28 // Checks if contexts for different elements are different. |
| 29 var inputContext = document.getElementById('input').inputMethodContext; | 29 var inputContext = document.getElementById('input').inputMethodContext; |
| 30 var input2Context = document.getElementById('input2').inputMethodContext; | 30 var input2Context = document.getElementById('input2').inputMethodContext; |
| 31 shouldNotBe('inputContext', 'input2Context'); | 31 shouldNotBe('inputContext', 'input2Context'); |
| 32 </script> | 32 </script> |
| 33 <script src="../js/resources/js-test-post.js"></script> | |
| 34 </body> | 33 </body> |
| 35 </html> | 34 </html> |
| OLD | NEW |