Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / deleting-text-rests-typing-style.html
blob5a0487c9078bc04b36add5d7b441e497a5da7705
1 <div id="description">This tests deleting a bold paragraph, then changing the selection and moving it back to the spot
2 where that paragraph was deleted and typing more. The new test should not be bolded.</div>
3 <div id="edit1" contentEditable="true"><div id="one"><b>Bold</b><br></div><div id="two"><br></div></div>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <script>
6 Markup.description(document.getElementById('description').textContent);
8 one = document.getElementById("one");
9 window.getSelection().setBaseAndExtent(one, 0, one, one.childNodes.length);
10 document.execCommand("Delete");
12 window.getSelection().modify("move", "forward", "character");
13 window.getSelection().modify("move", "backward", "character");
15 document.execCommand("InsertText", false, "Not bold");
17 Markup.dump(document.getElementById('edit1'));
18 </script>