Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <script src="../../resources/dump-as-markup.js"></script> | |
| 5 <div contenteditable="true"> | |
| 6 <div id="test">H <span style="color: blue;">W</span></div> | |
|
yosin_UTC9
2013/09/06 08:10:16
Please add test case for multiple text nodes.
tes
arpitab_
2013/09/06 14:01:32
Have added another test scenario (the second one)
| |
| 7 </div> | |
| 8 <script> | |
| 9 Markup.description('Testcase for bug http://crbug.com/286219: When deleting edit able content, typing style should be reset when moving into another node.'); | |
| 10 | |
| 11 Markup.waitUntilDone(); | |
| 12 | |
| 13 var testElement = document.getElementById('test'); | |
| 14 var selection = window.getSelection(); | |
| 15 | |
| 16 selection.collapse(testElement, 2); | |
| 17 document.execCommand("Delete"); | |
| 18 document.execCommand("InsertText", false, "O"); | |
| 19 Markup.dump(test); | |
| 20 | |
| 21 document.execCommand("Delete"); | |
| 22 document.execCommand("Delete"); | |
| 23 document.execCommand("InsertText", false, "W"); | |
| 24 Markup.dump(test); | |
| 25 | |
| 26 Markup.notifyDone(); | |
| 27 </script> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |