OLD | NEW |
1 library input_element_test; | |
2 import 'package:unittest/unittest.dart'; | |
3 import 'package:unittest/html_individual_config.dart'; | |
4 import 'dart:html'; | 1 import 'dart:html'; |
5 | 2 |
| 3 import 'package:minitest/minitest.dart'; |
| 4 |
6 void check(InputElement element, String type, [bool supported = true]) { | 5 void check(InputElement element, String type, [bool supported = true]) { |
7 expect(element is InputElement, true); | 6 expect(element is InputElement, true); |
8 if (supported) { | 7 if (supported) { |
9 expect(element.type, type); | 8 expect(element.type, type); |
10 } else { | 9 } else { |
11 expect(element.type, 'text'); | 10 expect(element.type, 'text'); |
12 } | 11 } |
13 } | 12 } |
14 | 13 |
15 main() { | 14 main() { |
16 useHtmlIndividualConfiguration(); | |
17 | |
18 group('supported_search', () { | 15 group('supported_search', () { |
19 test('supported', () { | 16 test('supported', () { |
20 expect(SearchInputElement.supported, true); | 17 expect(SearchInputElement.supported, true); |
21 }); | 18 }); |
22 }); | 19 }); |
23 | 20 |
24 group('supported_url', () { | 21 group('supported_url', () { |
25 test('supported', () { | 22 test('supported', () { |
26 expect(UrlInputElement.supported, true); | 23 expect(UrlInputElement.supported, true); |
27 }); | 24 }); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 }); | 183 }); |
187 test('valueSetNullProxy', () { | 184 test('valueSetNullProxy', () { |
188 final e = new TextInputElement(); | 185 final e = new TextInputElement(); |
189 e.value = _undefined; | 186 e.value = _undefined; |
190 expect(e.value, ''); | 187 expect(e.value, ''); |
191 }); | 188 }); |
192 }); | 189 }); |
193 } | 190 } |
194 | 191 |
195 var _undefined = (() => new List(5)[0])(); | 192 var _undefined = (() => new List(5)[0])(); |
OLD | NEW |