OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.summary.summarize_elements_test; | 5 library analyzer.test.src.summary.summarize_elements_test; |
6 | 6 |
7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
9 import 'package:analyzer/src/generated/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
10 import 'package:analyzer/src/generated/source_io.dart'; | 10 import 'package:analyzer/src/generated/source_io.dart'; |
11 import 'package:analyzer/src/summary/format.dart'; | 11 import 'package:analyzer/src/summary/format.dart'; |
12 import 'package:analyzer/src/summary/idl.dart'; | 12 import 'package:analyzer/src/summary/idl.dart'; |
13 import 'package:analyzer/src/summary/public_namespace_computer.dart' | 13 import 'package:analyzer/src/summary/public_namespace_computer.dart' |
14 as public_namespace; | 14 as public_namespace; |
15 import 'package:analyzer/src/summary/summarize_elements.dart' | 15 import 'package:analyzer/src/summary/summarize_elements.dart' |
16 as summarize_elements; | 16 as summarize_elements; |
17 import 'package:unittest/unittest.dart'; | 17 import 'package:unittest/unittest.dart'; |
18 | 18 |
19 import '../../generated/resolver_test.dart'; | 19 import '../../generated/resolver_test_case.dart'; |
20 import '../../reflective_tests.dart'; | 20 import '../../reflective_tests.dart'; |
21 import 'summary_common.dart'; | 21 import 'summary_common.dart'; |
22 | 22 |
23 main() { | 23 main() { |
24 groupSep = ' | '; | 24 groupSep = ' | '; |
25 runReflectiveTests(SummarizeElementsTest); | 25 runReflectiveTests(SummarizeElementsTest); |
26 } | 26 } |
27 | 27 |
28 /** | 28 /** |
29 * Override of [SummaryTest] which creates summaries from the element model. | 29 * Override of [SummaryTest] which creates summaries from the element model. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } else { | 148 } else { |
149 UnlinkedPublicNamespace namespace = | 149 UnlinkedPublicNamespace namespace = |
150 computePublicNamespaceFromText(text, source); | 150 computePublicNamespaceFromText(text, source); |
151 expect(canonicalize(namespace), | 151 expect(canonicalize(namespace), |
152 canonicalize(unlinkedUnits[i].publicNamespace), | 152 canonicalize(unlinkedUnits[i].publicNamespace), |
153 reason: 'publicNamespace(${unitUris[i]})'); | 153 reason: 'publicNamespace(${unitUris[i]})'); |
154 } | 154 } |
155 } | 155 } |
156 } | 156 } |
157 } | 157 } |
OLD | NEW |