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

Side by Side Diff: tests/html/input_element_test.dart

Issue 12310068: Removing DateTimeInputElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 library input_element_test; 1 library input_element_test;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_individual_config.dart'; 3 import '../../pkg/unittest/lib/html_individual_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 5
6 void check(InputElement element, String type, [bool supported = true]) { 6 void check(InputElement element, String type, [bool supported = true]) {
7 expect(element is InputElement, true); 7 expect(element is InputElement, true);
8 if (supported) { 8 if (supported) {
9 expect(element.type, type); 9 expect(element.type, type);
10 } else { 10 } else {
(...skipping 21 matching lines...) Expand all
32 expect(TelephoneInputElement.supported, true); 32 expect(TelephoneInputElement.supported, true);
33 }); 33 });
34 }); 34 });
35 35
36 group('supported_email', () { 36 group('supported_email', () {
37 test('supported', () { 37 test('supported', () {
38 expect(EmailInputElement.supported, true); 38 expect(EmailInputElement.supported, true);
39 }); 39 });
40 }); 40 });
41 41
42 group('supported_datetime', () {
43 test('supported', () {
44 expect(DateTimeInputElement.supported, true);
45 });
46 });
47
48 group('supported_date', () { 42 group('supported_date', () {
49 test('supported', () { 43 test('supported', () {
50 expect(DateInputElement.supported, true); 44 expect(DateInputElement.supported, true);
51 }); 45 });
52 }); 46 });
53 47
54 group('supported_month', () { 48 group('supported_month', () {
55 test('supported', () { 49 test('supported', () {
56 expect(MonthInputElement.supported, true); 50 expect(MonthInputElement.supported, true);
57 }); 51 });
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 }); 104 });
111 105
112 test('email', () { 106 test('email', () {
113 check(new EmailInputElement(), 'email', EmailInputElement.supported); 107 check(new EmailInputElement(), 'email', EmailInputElement.supported);
114 }); 108 });
115 109
116 test('password', () { 110 test('password', () {
117 check(new PasswordInputElement(), 'password'); 111 check(new PasswordInputElement(), 'password');
118 }); 112 });
119 113
120 test('datetime', () {
121 check(new DateTimeInputElement(), 'datetime',
122 DateTimeInputElement.supported);
123 });
124
125 test('date', () { 114 test('date', () {
126 check(new DateInputElement(), 'date', DateInputElement.supported); 115 check(new DateInputElement(), 'date', DateInputElement.supported);
127 }); 116 });
128 117
129 test('month', () { 118 test('month', () {
130 check(new MonthInputElement(), 'month', MonthInputElement.supported); 119 check(new MonthInputElement(), 'month', MonthInputElement.supported);
131 }); 120 });
132 121
133 test('week', () { 122 test('week', () {
134 check(new WeekInputElement(), 'week', WeekInputElement.supported); 123 check(new WeekInputElement(), 'week', WeekInputElement.supported);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 162
174 test('reset', () { 163 test('reset', () {
175 check(new ResetButtonInputElement(), 'reset'); 164 check(new ResetButtonInputElement(), 'reset');
176 }); 165 });
177 166
178 test('button', () { 167 test('button', () {
179 check(new ButtonInputElement(), 'button'); 168 check(new ButtonInputElement(), 'button');
180 }); 169 });
181 }); 170 });
182 } 171 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698