OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test.src.task.html_test; | 5 library analyzer.test.src.task.html_test; |
6 | 6 |
7 import 'package:analyzer/src/generated/source.dart'; | 7 import 'package:analyzer/src/generated/source.dart'; |
8 import 'package:analyzer/src/task/html.dart'; | 8 import 'package:analyzer/src/task/html.dart'; |
9 import 'package:analyzer/task/general.dart'; | 9 import 'package:analyzer/task/general.dart'; |
10 import 'package:analyzer/task/html.dart'; | 10 import 'package:analyzer/task/html.dart'; |
11 import 'package:analyzer/task/model.dart'; | 11 import 'package:analyzer/task/model.dart'; |
12 import 'package:html/dom.dart'; | 12 import 'package:html/dom.dart'; |
13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
14 | 14 |
15 import '../../reflective_tests.dart'; | 15 import '../../reflective_tests.dart'; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 expect(bodyElement.localName, 'body'); | 359 expect(bodyElement.localName, 'body'); |
360 // actual nodes | 360 // actual nodes |
361 expect(bodyElement.nodes, hasLength(4)); | 361 expect(bodyElement.nodes, hasLength(4)); |
362 expect((bodyElement.nodes[0] as Element).localName, 'div'); | 362 expect((bodyElement.nodes[0] as Element).localName, 'div'); |
363 expect((bodyElement.nodes[2] as Element).localName, 'span'); | 363 expect((bodyElement.nodes[2] as Element).localName, 'span'); |
364 } | 364 } |
365 // it's OK to don't have DOCTYPE | 365 // it's OK to don't have DOCTYPE |
366 expect(outputs[HTML_DOCUMENT_ERRORS], isEmpty); | 366 expect(outputs[HTML_DOCUMENT_ERRORS], isEmpty); |
367 } | 367 } |
368 } | 368 } |
OLD | NEW |