OLD | NEW |
1 library ElementListTest; | 1 library ElementListTest; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package:unittest/html_config.dart'; |
4 import 'dart:html'; | 4 import 'dart:html'; |
5 | 5 |
6 // Test that List<Element> implements List<T> | 6 // Test that List<Element> implements List<T> |
7 main() { | 7 main() { |
8 Element insertTestDiv() { | 8 Element insertTestDiv() { |
9 Element element = new Element.tag('div'); | 9 Element element = new Element.tag('div'); |
10 element.innerHtml = r""" | 10 element.innerHtml = r""" |
11 <div id='allChecked'> | 11 <div id='allChecked'> |
12 <input type="checkbox" name="c1" value="1" checked="yes"> | 12 <input type="checkbox" name="c1" value="1" checked="yes"> |
13 <input type="checkbox" name="c2" value="2" checked="yes"> | 13 <input type="checkbox" name="c2" value="2" checked="yes"> |
(...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 |