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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/4960120-1.html

Issue 2270663002: Selection API of INPUT/TEXTAREA should not update FrameSelection without focusing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust more tests Created 4 years, 4 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 <p>This tests for a bug where the first newline entered into a text area would b e lost.</p> 1 <p>This tests for a bug where the first newline entered into a text area would b e lost.</p>
2 <textarea id="textarea"></textarea> 2 <textarea id="textarea"></textarea>
3 3
4 <script> 4 <script>
5 var textarea = document.getElementById("textarea"); 5 var textarea = document.getElementById("textarea");
6 textarea.setSelectionRange(0, 0); 6 textarea.setSelectionRange(0, 0);
7 7 textarea.focus();
8 document.execCommand("InsertLineBreak"); 8 document.execCommand("InsertLineBreak");
9 </script> 9 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698