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

Side by Side Diff: LayoutTests/fast/forms/input-placeholder-visibility-2-expected.html

Issue 258063005: Blink does not respect input.selectionStart and input.selectionEnd for some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patch fixing existing bug Created 6 years, 6 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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p>Focus field with a placeholder, then type.</p> 6 <p>Focus field with a placeholder, then type.</p>
7 <div> 7 <div>
8 <input id=i1 value="Text"> 8 <input id=i1 value="Text">
9 <script> 9 <script>
10 document.getElementById('i1').setSelectionRange(4, 4); 10 if (!window.testRunner) {
11 document.write("This test needs testRunner to work")
12 } else {
13 var startX = document.getElementById("i1").offsetLeft + 30;
tkent 2014/06/01 23:40:55 This looks depending on a specific font, and looks
harpreet.sk 2014/07/02 10:13:05 Yes it will work. I had made the changes in new pa
14 var startY = document.getElementById("i1").offsetTop + 4;
15 eventSender.mouseMoveTo(startX,startY);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 }
11 </script> 19 </script>
12 </body> 20 </body>
13 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698