OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <input type="email" id="email"> | |
8 <input type="number" id="number"> | |
9 <input type="date" id="date"> | |
10 <input type="datetime-local" id="datetime-local"> | |
11 <input type="color" id="color"> | |
12 <input type="file" id="file"> | |
13 <script> | |
14 description('Test to show select() support for Email, Number, Date/Time, Color a nd File. It throws only for selection() API'); | |
15 | |
16 var id = document.getElementById('email'); | |
17 shouldBe('id.select()', ''); | |
tkent
2014/11/07 00:22:32
This should be |shouldNotThrow('document.getElemen
Habib Virji
2014/11/07 13:30:10
Done.
| |
18 shouldThrow('id.selectionStart()'); | |
tkent
2014/11/07 00:22:32
Please remove this line, and add tests for missing
Habib Virji
2014/11/07 13:30:10
Done.
| |
19 | |
20 id = document.getElementById('number'); | |
21 shouldBe('id.select()', ''); | |
22 shouldThrow('id.selectionStart()'); | |
23 | |
24 id = document.getElementById('date'); | |
25 shouldBe('id.select()', ''); | |
26 shouldThrow('id.selectionStart()'); | |
27 | |
28 id = document.getElementById('datetime-local'); | |
29 shouldBe('id.select()', ''); | |
30 shouldThrow('id.selectionStart()'); | |
31 | |
tkent
2014/11/07 00:22:32
Please add tests for <input type=month/time/week>.
Habib Virji
2014/11/07 13:30:10
Done.
| |
32 id = document.getElementById('color'); | |
33 shouldBe('id.select()', ''); | |
34 shouldThrow('id.selectionStart()'); | |
35 | |
36 id = document.getElementById('file'); | |
37 shouldBe('id.select()', ''); | |
38 shouldThrow('id.selectionStart()'); | |
39 </script> | |
40 </body> | |
41 </html> | |
OLD | NEW |