blob: 69abf6a89ead0dfbcd605c2c37aa3ece9b710735 [file] [log] [blame]
justing2112d432006-11-28 21:25:28 +00001<p>This tests caret movement across buttons. The caret should be just after the second button.</p>
2<div id="div" contenteditable="true">
3<input type="submit" value="Foo"><input type="reset" value="Bar">
4</div>
5
arobenc77591c2007-01-14 10:04:21 +00006<script src="../editing.js"></script>
justing2112d432006-11-28 21:25:28 +00007<script>
8runEditingTest();
9
10function editingTest() {
11 var sel = window.getSelection();
12 var div = document.getElementById("div");
13 sel.setPosition(div, 0);
14
15 moveSelectionForwardByCharacterCommand();
16 moveSelectionForwardByCharacterCommand();
17}
arobenc77591c2007-01-14 10:04:21 +000018</script>