blob: 22b4eb750ad49d6400404e33b35f65b96841224d [file] [log] [blame]
<!DOCTYPE html>
<html charset="utf-8">
<body>
<div id="editor" dir="rtl" contenteditable><div>&#1513;&#1500;&#1493;&#1501;</div><div><object type="application/x-something" height="50" width="50" border="1"></object><br><div>&#1506;&#1493;&#1500;&#1501;</div></div></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This tests moving left and right by word boundary across an object element. WebKit should not hang.');
editor.focus();
getSelection().setPosition(editor, 0);
Markup.dump(editor, 'Initial state');
for (let i = 0; i < 3; i++) {
getSelection().modify('move', 'left', 'word');
Markup.dump(editor, `Move left count: ${i + 1}`);
}
for (let i = 0; i < 3; i++) {
getSelection().modify('move', 'right', 'word');
Markup.dump(editor, `Move right count: ${i + 1}`);
}
</script>
</body>
</html>