OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.test.src.context.context_test; | 5 library analyzer.test.src.context.context_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
(...skipping 13 matching lines...) Expand all Loading... |
24 import 'package:analyzer/src/generated/engine.dart'; | 24 import 'package:analyzer/src/generated/engine.dart'; |
25 import 'package:analyzer/src/generated/resolver.dart'; | 25 import 'package:analyzer/src/generated/resolver.dart'; |
26 import 'package:analyzer/src/generated/source.dart'; | 26 import 'package:analyzer/src/generated/source.dart'; |
27 import 'package:analyzer/src/generated/utilities_collection.dart'; | 27 import 'package:analyzer/src/generated/utilities_collection.dart'; |
28 import 'package:analyzer/src/task/dart.dart'; | 28 import 'package:analyzer/src/task/dart.dart'; |
29 import 'package:analyzer/src/task/html.dart'; | 29 import 'package:analyzer/src/task/html.dart'; |
30 import 'package:analyzer/task/dart.dart'; | 30 import 'package:analyzer/task/dart.dart'; |
31 import 'package:analyzer/task/general.dart'; | 31 import 'package:analyzer/task/general.dart'; |
32 import 'package:analyzer/task/model.dart'; | 32 import 'package:analyzer/task/model.dart'; |
33 import 'package:html/dom.dart' show Document; | 33 import 'package:html/dom.dart' show Document; |
| 34 import 'package:test/test.dart'; |
34 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 35 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
35 import 'package:unittest/unittest.dart'; | |
36 import 'package:watcher/src/utils.dart'; | 36 import 'package:watcher/src/utils.dart'; |
37 | 37 |
38 import '../../generated/engine_test.dart'; | 38 import '../../generated/engine_test.dart'; |
39 import '../../generated/test_support.dart'; | 39 import '../../generated/test_support.dart'; |
40 import '../../utils.dart'; | 40 import '../../utils.dart'; |
41 import 'abstract_context.dart'; | 41 import 'abstract_context.dart'; |
42 | 42 |
43 main() { | 43 main() { |
44 initializeTestEnvironment(); | 44 initializeTestEnvironment(); |
45 defineReflectiveTests(AnalysisContextImplTest); | 45 defineReflectiveSuite(() { |
46 defineReflectiveTests(LimitedInvalidateTest); | 46 defineReflectiveTests(AnalysisContextImplTest); |
| 47 defineReflectiveTests(LimitedInvalidateTest); |
| 48 }); |
47 } | 49 } |
48 | 50 |
49 @reflectiveTest | 51 @reflectiveTest |
50 class AnalysisContextImplTest extends AbstractContextTest { | 52 class AnalysisContextImplTest extends AbstractContextTest { |
51 void fail_getErrors_html_some() { | 53 void fail_getErrors_html_some() { |
52 Source source = addSource( | 54 Source source = addSource( |
53 "/test.html", | 55 "/test.html", |
54 r''' | 56 r''' |
55 <html><head> | 57 <html><head> |
56 <script type='application/dart' src='test.dart'/> | 58 <script type='application/dart' src='test.dart'/> |
(...skipping 5212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5269 * Initialize the visitor. | 5271 * Initialize the visitor. |
5270 */ | 5272 */ |
5271 _ElementGatherer(); | 5273 _ElementGatherer(); |
5272 | 5274 |
5273 @override | 5275 @override |
5274 void visitElement(Element element) { | 5276 void visitElement(Element element) { |
5275 elements[element] = element; | 5277 elements[element] = element; |
5276 super.visitElement(element); | 5278 super.visitElement(element); |
5277 } | 5279 } |
5278 } | 5280 } |
OLD | NEW |