OLD | NEW |
1 import 'dart:html'; | 1 import 'dart:html'; |
2 | 2 |
3 import 'package:minitest/minitest.dart'; | 3 import 'package:expect/minitest.dart'; |
4 | 4 |
5 void check(InputElement element, String type, [bool supported = true]) { | 5 void check(InputElement element, String type, [bool supported = true]) { |
6 expect(element is InputElement, true); | 6 expect(element is InputElement, true); |
7 if (supported) { | 7 if (supported) { |
8 expect(element.type, type); | 8 expect(element.type, type); |
9 } else { | 9 } else { |
10 expect(element.type, 'text'); | 10 expect(element.type, 'text'); |
11 } | 11 } |
12 } | 12 } |
13 | 13 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 }); | 183 }); |
184 test('valueSetNullProxy', () { | 184 test('valueSetNullProxy', () { |
185 final e = new TextInputElement(); | 185 final e = new TextInputElement(); |
186 e.value = _undefined; | 186 e.value = _undefined; |
187 expect(e.value, ''); | 187 expect(e.value, ''); |
188 }); | 188 }); |
189 }); | 189 }); |
190 } | 190 } |
191 | 191 |
192 var _undefined = (() => new List(5)[0])(); | 192 var _undefined = (() => new List(5)[0])(); |
OLD | NEW |