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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/paragraph-separator-in-table-1.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 years, 9 months 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 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks(); 3 testRunner.dumpEditingCallbacks();
4 </script> 4 </script>
5 <p>This tests InsertParagraphSeparator inside table cells. 'Cell' and 'Two' sho uld be on separate lines.</p> 5 <p>This tests InsertParagraphSeparator inside table cells. 'Cell' and 'Two' sho uld be on separate lines.</p>
6 6
7 <div contenteditable="true"><table border="1"><tr><td>Cell One</td><td>Cell <spa n id="test">Two</span></td></tr></table></div> 7 <div contenteditable="true"><table border="1"><tr><td>Cell One</td><td>Cell <spa n id="test">Two</span></td></tr></table></div>
8 8
9 <script> 9 <script>
10 var e = document.getElementById("test").firstChild; 10 var e = document.getElementById("test").firstChild;
11 var s = window.getSelection(); 11 var s = window.getSelection();
12 document.querySelector("div").focus();
12 13
13 s.collapse(e, 0); 14 s.collapse(e, 0);
14 document.execCommand("InsertParagraph"); 15 document.execCommand("InsertParagraph");
15 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698