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

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: Addressing changes asked in patch set 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input id="val1" type="text" />
8 <input id="val2" type="text" />
9 <script type="text/javascript">
10 description('Test for BUG=367736: Blink does not respect input.selectionStart an d input.selectionEnd for some cases.');
11 var firstInput = document.getElementById('val1');
12 var secondInput = document.getElementById('val2');
13 if (!window.testRunner) {
tkent 2014/05/20 09:51:40 This test doesn't need testRunner.
14 debug('This test needs window.testRunner to work.');
15 } else {
16 firstInput.selectionStart = 3;
17 firstInput.selectionEnd = 5;
18 firstInput.value = "Parsed";
tkent 2014/05/20 09:51:40 nit: double-quotes though other quotes are single.
19 shouldBe('firstInput.selectionStart', '6');
harpreet.sk 2014/05/19 11:16:52 I checked this case on the browser and it was show
tkent 2014/05/20 09:51:40 I don't know. Please investigate by yourself.
harpreet.sk 2014/05/23 10:46:24 I found that whenver we give test file as an input
20 shouldBe('firstInput.selectionEnd', '6');
21 secondInput.selectionStart = 3;
22 secondInput.selectionEnd = 5;
23 secondInput.value = "P";
tkent 2014/05/20 09:51:40 nit: double-quotes
24 shouldBe('secondInput.selectionStart', '1');
25 shouldBe('secondInput.selectionEnd', '1');
26 secondInput.value = "Parsed";
tkent 2014/05/20 09:51:40 nit: double-quotes
27 shouldBe('secondInput.selectionStart', '6');
harpreet.sk 2014/05/19 11:16:52 Ditto. I think test runner always returns selectio
28 shouldBe('secondInput.selectionEnd', '6');
29 }
30 </script>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-set-selectionStart-set-selectionEnd-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698