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 bool isChecked(Element e) => (e as CheckboxInputElement).checked; | 5 bool isChecked(Element e) => (e as CheckboxInputElement).checked; |
6 bool isUnchecked(Element e) => !(e as CheckboxInputElement).checked; | 6 bool isUnchecked(Element e) => !(e as CheckboxInputElement).checked; |
7 | 7 |
8 // Test that List<Element> implements List<T> | 8 // Test that List<Element> implements List<T> |
9 main() { | 9 main() { |
10 Element insertTestDiv() { | 10 Element insertTestDiv() { |
11 Element element = new Element.tag('div'); | 11 Element element = new Element.tag('div'); |
12 element.innerHtml = r""" | 12 element.innerHtml = r""" |
13 <div id='allChecked'> | 13 <div id='allChecked'> |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 expect(someChecked.lastIndexOf(someChecked[3], 2), -1); | 268 expect(someChecked.lastIndexOf(someChecked[3], 2), -1); |
269 | 269 |
270 expect(someChecked.lastIndexOf(noneChecked[0], 3), -1); | 270 expect(someChecked.lastIndexOf(noneChecked[0], 3), -1); |
271 expect(noneChecked.lastIndexOf(someChecked[0], 3), -1); | 271 expect(noneChecked.lastIndexOf(someChecked[0], 3), -1); |
272 expect(someChecked.lastIndexOf(noneChecked[1], 3), -1); | 272 expect(someChecked.lastIndexOf(noneChecked[1], 3), -1); |
273 expect(noneChecked.lastIndexOf(someChecked[1], 3), -1); | 273 expect(noneChecked.lastIndexOf(someChecked[1], 3), -1); |
274 | 274 |
275 root.remove(); | 275 root.remove(); |
276 }); | 276 }); |
277 } | 277 } |
OLD | NEW |