| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function check(expect, actual) { | 4 function check(expect, actual) { |
| 5 var console = document.getElementById('console'); | 5 var console = document.getElementById('console'); |
| 6 var div = document.createElement('div'); | 6 var div = document.createElement('div'); |
| 7 div.innerHTML = expect == actual ? 'PASS' : 'FAIL'; | 7 div.innerHTML = expect == actual ? 'PASS' : 'FAIL'; |
| 8 div.innerHTML += ' expects = "' + expect + '", actual = "' + actual + '"'; | 8 div.innerHTML += ' expects = "' + expect + '", actual = "' + actual + '"'; |
| 9 console.appendChild(div); | 9 console.appendChild(div); |
| 10 } | 10 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 </script> | 34 </script> |
| 35 </head> | 35 </head> |
| 36 <body onload="doTest()"> | 36 <body onload="doTest()"> |
| 37 <p>This page ensures that the composition text of an input method does not ins
ert into the textarea when the composition text is updated but is not committed.
The bug, reported in <a href="https://bugs.webkit.org/show_bug.cgi?id=46868">th
e issue 46868</a>, should not occur here. When DRT tests this page, it will emul
ate changing composition text from "first" to "second". After that, the value of
the textarea should be "second" and should not be "secondfirst". </p> | 37 <p>This page ensures that the composition text of an input method does not ins
ert into the textarea when the composition text is updated but is not committed.
The bug, reported in <a href="https://bugs.webkit.org/show_bug.cgi?id=46868">th
e issue 46868</a>, should not occur here. When DRT tests this page, it will emul
ate changing composition text from "first" to "second". After that, the value of
the textarea should be "second" and should not be "secondfirst". </p> |
| 38 <p>For manual test, input text into the following textarea by using an input m
ethod. The composition text which is not committed should not be inserted into t
he textarea.</p> | 38 <p>For manual test, input text into the following textarea by using an input m
ethod. The composition text which is not committed should not be inserted into t
he textarea.</p> |
| 39 <textarea id="textarea"></textarea> | 39 <textarea id="textarea"></textarea> |
| 40 <div id="console"></div> | 40 <div id="console"></div> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |