commit-queue@webkit.org | c8932f8 | 2013-10-11 06:18:44 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script src="../../resources/dump-as-markup.js"></script> |
| 5 | <style> p { position: relative; } </style> |
| 6 | </head> |
| 7 | |
| 8 | <body> |
| 9 | <div id="container" contenteditable><p>1</p><p id="paragraphToDelete">2</p><p>3</p><p>4</p></div> |
| 10 | |
| 11 | <script> |
| 12 | Markup.description('This test is for a bug when delete commands is applied on paragraph with positioning other than static then the below paragraph are incorrectly collapsed, 3 & 4 should not be merged as 43'); |
| 13 | |
| 14 | getSelection().collapse(paragraphToDelete, 1); |
| 15 | Markup.dump('container', 'BeforeDeletion'); |
| 16 | |
| 17 | document.execCommand("Delete", false, null); |
| 18 | Markup.dump('container', 'AfterDeletion'); |
| 19 | </script> |
| 20 | <body> |
| 21 | </html> |