Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/text-iterator/rtl-selection-crash.html

Issue 1516553002: Remove deprecation messages for no-ops that are left in the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update tests Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 1 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
2 <body> 2 <body>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 var div = document.createElement('div'); 7 var div = document.createElement('div');
8 div.contentEditable = 'true'; 8 div.contentEditable = 'true';
9 div.innerHTML = "אחת ש<a id='bar'>תיים </a>שלוש"; 9 div.innerHTML = "אחת ש<a id='bar'>תיים </a>שלוש";
10 document.body.appendChild(div); 10 document.body.appendChild(div);
11 div.focus(); 11 div.focus();
12 12
13 var sel = window.getSelection(); 13 var sel = window.getSelection();
14 sel.selectAllChildren(bar); 14 sel.selectAllChildren(bar);
15 var range = sel.getRangeAt(0); 15 var range = sel.getRangeAt(0);
16 range.insertNode(document.createElement('span')); 16 range.insertNode(document.createElement('span'));
17 range.detach();
18 17
19 // This part can be any number of actions, e.g., clicking anywhere on the page a lso crashes. 18 // This part can be any number of actions, e.g., clicking anywhere on the page a lso crashes.
20 sel.selectAllChildren(bar); 19 sel.selectAllChildren(bar);
21 </script> 20 </script>
22 <p>This test passes if it doesn't crash.</p> 21 <p>This test passes if it doesn't crash.</p>
23 </body> 22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698