| This test sets caret at the beginning of backward text and moving the character to left and right. WebKit should not crash and you should see PASS below: |
| <textarea id="editor">‮LTR |
| var sel = window.getSelection(); |
| var test = document.getElementById("editor"); |
| test.selectionDirection = 'none'; |
| getSelection().modify("move", "left", "character"); |
| getSelection().modify("move", "left", "character"); |
| test.selectionDirection = 'none'; |
| getSelection().modify("move", "right", "character"); |
| getSelection().modify("move", "right", "character"); |
| document.body.innerHTML = "PASS"; |