blob: 50f18b475672a877278281cfb0954acbe55b32e2 [file] [log] [blame]
mmaxfield@apple.com48b376e2017-10-17 21:21:32 +00001<!DOCTYPE html>
2<html>
3<body>
4<div id="test" contenteditable="true">
5&#x1F468;&zwj;&#x1F467;&zwj;&#x1F467;&#x1F469;&zwj;&#x1F466;&#x1F469;&zwj;&#x1F466;&zwj;&#x1F466;&#x1F469;&zwj;&#x1F467;&#x1F469;&zwj;&#x1F467;&zwj;&#x1F466;&#x1F469;&zwj;&#x1F467;&zwj;&#x1F467;&#x1F3F3;&#xFE0F;&zwj;&#x1F308;&#x1F3F3;&zwj;&#x1F308;&#x1F3C3;&#x1F3FB;&zwj;&#x2640;&#xFE0F;&#x1F3C3;&#x1F3FB;&zwj;&#x2640;
6</div>
7<script src="../../resources/dump-as-markup.js"></script>
8<script>
9Markup.description("This test verifies that deletions are correct over emoji groups and emoji with variations");
10var testElement = document.getElementById('test');
11getSelection().setBaseAndExtent(testElement.firstChild, testElement.firstChild.length, testElement.firstChild, testElement.firstChild.length);
12Markup.dump("test");
13while (testElement.firstChild.length) {
14 document.execCommand("Delete");
15 Markup.dump("test");
16}
17
18</script>
19</body>
20</html>