OLD | NEW |
1 library XmlDocument2Test; | 1 library XmlDocument2Test; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import '../../pkg/unittest/lib/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import '../../pkg/unittest/lib/html_config.dart'; |
4 import 'dart:html'; | 4 import 'dart:html'; |
5 | 5 |
6 main() { | 6 main() { |
7 useHtmlConfiguration(); | 7 useHtmlConfiguration(); |
8 test('Document.query', () { | 8 test('Document.query', () { |
9 Document doc = new DOMParser().parseFromString( | 9 Document doc = new DomParser().parseFromString( |
10 '''<ResultSet> | 10 '''<ResultSet> |
11 <Row>A</Row> | 11 <Row>A</Row> |
12 <Row>B</Row> | 12 <Row>B</Row> |
13 <Row>C</Row> | 13 <Row>C</Row> |
14 </ResultSet>''','text/xml'); | 14 </ResultSet>''','text/xml'); |
15 | 15 |
16 var rs = doc.query('ResultSet'); | 16 var rs = doc.query('ResultSet'); |
17 expect(rs, isNotNull); | 17 expect(rs, isNotNull); |
18 }); | 18 }); |
19 } | 19 } |
OLD | NEW |