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

Side by Side Diff: LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd.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: Created 6 years, 7 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 function log(msg)
6 {
7 document.getElementById('res').innerHTML = document.getElementById('res').in nerHTML + msg + "<br>";
8 }
9
10 function testSelection()
11 {
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 var input = document.getElementById('val1');
15 input.selectionStart = 3;
16 input.selectionEnd = 5;
17 input.value = "Parsed";
18 log('Slection start: ' + input.selectionStart + ' and end: ' + inpu t.selectionEnd);
harpreet.sk 2014/04/28 16:09:04 I checked this layout test on the browser and it w
19 }
20 }
21 </script>
22 </head>
23 <body onload="testSelection()">
24 <input id="val1" type="text" />
25 <div id="res"></div>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698