justing | 2112d43 | 2006-11-28 21:25:28 +0000 | [diff] [blame] | 1 | <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 | |
aroben | c77591c | 2007-01-14 10:04:21 +0000 | [diff] [blame] | 6 | <script src="../editing.js"></script> |
justing | 2112d43 | 2006-11-28 21:25:28 +0000 | [diff] [blame] | 7 | <script> |
| 8 | runEditingTest(); |
| 9 | |
| 10 | function editingTest() { |
| 11 | var sel = window.getSelection(); |
| 12 | var div = document.getElementById("div"); |
| 13 | sel.setPosition(div, 0); |
| 14 | |
| 15 | moveSelectionForwardByCharacterCommand(); |
| 16 | moveSelectionForwardByCharacterCommand(); |
| 17 | } |
aroben | c77591c | 2007-01-14 10:04:21 +0000 | [diff] [blame] | 18 | </script> |