OLD | NEW |
1 /** Additional feature tests that aren't based on test data. */ | 1 /// Additional feature tests that aren't based on test data. |
2 library parser_feature_test; | 2 library parser_feature_test; |
3 | 3 |
4 import 'package:unittest/unittest.dart'; | 4 import 'package:unittest/unittest.dart'; |
5 import 'package:html5lib/dom.dart'; | 5 import 'package:html5lib/dom.dart'; |
6 import 'package:html5lib/parser.dart'; | 6 import 'package:html5lib/parser.dart'; |
7 import 'package:html5lib/src/constants.dart'; | 7 import 'package:html5lib/src/constants.dart'; |
8 import 'package:html5lib/src/treebuilder.dart'; | 8 import 'package:html5lib/src/treebuilder.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 test('doctype is cloneable', () { | 11 test('doctype is cloneable', () { |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 expect((c as Comment).data, 'foo'); | 281 expect((c as Comment).data, 'foo'); |
282 expect(c.text, 'foo'); | 282 expect(c.text, 'foo'); |
283 expect(e.text, 'bar'); | 283 expect(e.text, 'bar'); |
284 | 284 |
285 c.text = 'qux'; | 285 c.text = 'qux'; |
286 expect(c.data, 'qux'); | 286 expect(c.data, 'qux'); |
287 expect(c.text, 'qux'); | 287 expect(c.text, 'qux'); |
288 expect(e.text, 'bar'); | 288 expect(e.text, 'bar'); |
289 }); | 289 }); |
290 } | 290 } |
OLD | NEW |