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

Side by Side Diff: LayoutTests/fast/forms/input-select-api-support.html

Issue 707853002: Tests to show support for select() API exists (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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-select-api-support-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 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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-select-api-support-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698