OLD | NEW |
---|---|
1 library input_element_test; | 1 library input_element_test; |
2 import 'package:unittest/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import 'package:unittest/html_individual_config.dart'; | 3 import 'package:unittest/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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 }); | 179 }); |
180 | 180 |
181 group('attributes', () { | 181 group('attributes', () { |
182 test('valueSetNull', () { | 182 test('valueSetNull', () { |
183 final e = new TextInputElement(); | 183 final e = new TextInputElement(); |
184 e.value = null; | 184 e.value = null; |
185 expect(e.value, ''); | 185 expect(e.value, ''); |
186 }); | 186 }); |
187 test('valueSetNullProxy', () { | 187 test('valueSetNullProxy', () { |
188 final e = new TextInputElement(); | 188 final e = new TextInputElement(); |
189 var list = new List(5); | 189 e.value = _undefined; |
190 e.value = list[0]; | |
Siggi Cherem (dart-lang)
2016/02/06 02:36:27
we replaced this with null, but SSA didn't, the ne
| |
191 expect(e.value, ''); | 190 expect(e.value, ''); |
192 }); | 191 }); |
193 }); | 192 }); |
194 } | 193 } |
194 | |
195 var _undefined = (() => new List(5)[0])(); | |
OLD | NEW |