mmaxfield@apple.com | 48b376e | 2017-10-17 21:21:32 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | <div id="test" contenteditable="true"> |
| 5 | 👨‍👧‍👧👩‍👦👩‍👦‍👦👩‍👧👩‍👧‍👦👩‍👧‍👧🏳️‍🌈🏳‍🌈🏃🏻‍♀️🏃🏻‍♀ |
| 6 | </div> |
| 7 | <script src="../../resources/dump-as-markup.js"></script> |
| 8 | <script> |
| 9 | Markup.description("This test verifies that deletions are correct over emoji groups and emoji with variations"); |
| 10 | var testElement = document.getElementById('test'); |
| 11 | getSelection().setBaseAndExtent(testElement.firstChild, testElement.firstChild.length, testElement.firstChild, testElement.firstChild.length); |
| 12 | Markup.dump("test"); |
| 13 | while (testElement.firstChild.length) { |
| 14 | document.execCommand("Delete"); |
| 15 | Markup.dump("test"); |
| 16 | } |
| 17 | |
| 18 | </script> |
| 19 | </body> |
| 20 | </html> |