Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / text-iterator / rtl-selection-crash.html
blob6f961f949df9cba5c1fb1e8fb019a5e079f4b25f
1 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
2 <body>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var div = document.createElement('div');
8 div.contentEditable = 'true';
9 div.innerHTML = "אחת ש<a id='bar'>תיים </a>שלוש";
10 document.body.appendChild(div);
11 div.focus();
13 var sel = window.getSelection();
14 sel.selectAllChildren(bar);
15 var range = sel.getRangeAt(0);
16 range.insertNode(document.createElement('span'));
17 range.detach();
19 // This part can be any number of actions, e.g., clicking anywhere on the page also crashes.
20 sel.selectAllChildren(bar);
21 </script>
22 <p>This test passes if it doesn't crash.</p>
23 </body>