blob: b2b4943f00b3a70f438806a761d41b38b474afd2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This test that we can jump word by word over rtl-ltr content.</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body contenteditable="true";>
Pass if no hang.
<div style="direction: rtl;">&#x202B foobar foobar&#x202B</div></br>
<script>
if (window.testRunner)
testRunner.dumpAsText();
getSelection().setPosition(document.querySelector('div').firstChild, 2);
getSelection().modify('move', 'right', 'word');
getSelection().modify('move', 'right', 'word');
</script>
</body>
</html>