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

Side by Side Diff: LayoutTests/fast/forms/input-setvalue-selection.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: Addressing changes asked Created 6 years, 5 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 <body> 1 <body>
2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13690">bug 13960</a> : 2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13690">bug 13960</a> :
3 JavaScript Form Validation issue on Banco do Brasil site.</p> 3 JavaScript Form Validation issue on Banco do Brasil site.</p>
4 4
5 <form> 5 <form>
6 <input type="text"> 6 <input type="text">
7 </form> 7 </form>
8 8
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 12
13 input = document.getElementsByTagName("input")[0]; 13 input = document.getElementsByTagName("input")[0];
14 input.value = "1"; 14 input.value = "1";
15 document.write(input.selectionStart == 1 ? "1. SUCCESS" : "1. FAILURE (the ins ertion point should be at the end)"); 15 document.write(input.selectionStart == 0 ? "1. SUCCESS" : "1. FAILURE (the ins ertion point should be at the end)");
tkent 2014/07/08 00:34:48 We should update the comment for the FAILURE. at
harpreet.sk 2014/07/08 06:07:58 Done.
16 16
17 document.write("<br>"); 17 document.write("<br>");
18 input.focus(); 18 input.focus();
19 input.value = "12"; 19 input.value = "12";
20 20
21 document.write(input.selectionStart == 2 ? "2. SUCCESS" : "2. FAILURE (the ins ertion point should be at the end)"); 21 document.write(input.selectionStart == 2 ? "2. SUCCESS" : "2. FAILURE (the ins ertion point should be at the end)");
22 </script> 22 </script>
23 23
24 </body> 24 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698