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