| <!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;">‫ foobar foobar‫</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> |