OLD | NEW |
---|---|
(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> | |
OLD | NEW |