Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div> | 7 <div> |
| 8 <div id="src" contenteditable="true" spellcheck="true"></div><br/> | 8 <div id="src" contenteditable="true" spellcheck="true"></div><br/> |
| 9 <div id="dst" contenteditable="true" spellcheck="false"></div> | 9 <div id="dst" contenteditable="true" spellcheck="false"></div> |
| 10 </div> | 10 </div> |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 var srcNode = document.getElementById('src'); | 21 var srcNode = document.getElementById('src'); |
| 22 srcNode.focus(); | 22 srcNode.focus(); |
| 23 document.execCommand("InsertText", false, 'z'); | 23 document.execCommand("InsertText", false, 'z'); |
| 24 document.execCommand("InsertText", false, 'z'); | 24 document.execCommand("InsertText", false, 'z'); |
| 25 document.execCommand("InsertText", false, ' '); | 25 document.execCommand("InsertText", false, ' '); |
| 26 document.execCommand("InsertText", false, 'a'); | 26 document.execCommand("InsertText", false, 'a'); |
| 27 document.execCommand("InsertText", false, 'p'); | 27 document.execCommand("InsertText", false, 'p'); |
| 28 document.execCommand("InsertText", false, 'p'); | 28 document.execCommand("InsertText", false, 'p'); |
| 29 document.execCommand("InsertText", false, 'l'); | 29 document.execCommand("InsertText", false, 'l'); |
| 30 document.execCommand("InsertText", false, 'e'); | 30 document.execCommand("InsertText", false, 'e'); |
| 31 shouldBecomeEqual('internals.hasSpellingMarker(document, 0, 2)', 'true', functio n(){}); | 31 shouldBecomeEqual('internals.hasSpellingMarker(document, 0, 2)', 'true', functio n(){ |
|
please use gerrit instead
2015/02/10 22:57:50
Ditto.
grzegorz
2015/02/11 10:54:23
Ditto :)
| |
| 32 window.getSelection().selectAllChildren(srcNode); | 32 window.getSelection().selectAllChildren(srcNode); |
| 33 document.execCommand('Copy'); | 33 document.execCommand('Copy'); |
| 34 | 34 |
| 35 var dstNode = document.getElementById('dst'); | 35 var dstNode = document.getElementById('dst'); |
| 36 dstNode.focus(); | 36 dstNode.focus(); |
| 37 document.execCommand('Paste'); | 37 document.execCommand('Paste'); |
| 38 shouldBecomeDifferent('internals.hasSpellingMarker(document, 0, 2)', 'true', fin ishJSTest); | 38 shouldBecomeDifferent('internals.hasSpellingMarker(document, 0, 2)', 'true', finishJSTest); |
| 39 | 39 }); |
| 40 </script> | 40 </script> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |