| 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/sdk.dart'; | 9 import 'package:analyzer/src/generated/sdk.dart'; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| 11 import 'package:analyzer/src/generated/source_io.dart'; | 11 import 'package:analyzer/src/generated/source_io.dart'; |
| 12 import 'package:analyzer/src/summary/format.dart'; | 12 import 'package:analyzer/src/summary/format.dart'; |
| 13 import 'package:analyzer/src/summary/idl.dart'; | 13 import 'package:analyzer/src/summary/idl.dart'; |
| 14 import 'package:analyzer/src/summary/public_namespace_computer.dart' | 14 import 'package:analyzer/src/summary/public_namespace_computer.dart' |
| 15 as public_namespace; | 15 as public_namespace; |
| 16 import 'package:analyzer/src/summary/summarize_elements.dart' | 16 import 'package:analyzer/src/summary/summarize_elements.dart' |
| 17 as summarize_elements; | 17 as summarize_elements; |
| 18 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 18 import 'package:unittest/unittest.dart'; | 19 import 'package:unittest/unittest.dart'; |
| 19 | 20 |
| 20 import '../../reflective_tests.dart'; | |
| 21 import '../abstract_single_unit.dart'; | 21 import '../abstract_single_unit.dart'; |
| 22 import '../context/abstract_context.dart'; | 22 import '../context/abstract_context.dart'; |
| 23 import 'summary_common.dart'; | 23 import 'summary_common.dart'; |
| 24 | 24 |
| 25 main() { | 25 main() { |
| 26 groupSep = ' | '; | 26 groupSep = ' | '; |
| 27 runReflectiveTests(SummarizeElementsTest); | 27 defineReflectiveTests(SummarizeElementsTest); |
| 28 } | 28 } |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * Override of [SummaryTest] which creates summaries from the element model. | 31 * Override of [SummaryTest] which creates summaries from the element model. |
| 32 */ | 32 */ |
| 33 @reflectiveTest | 33 @reflectiveTest |
| 34 class SummarizeElementsTest extends AbstractSingleUnitTest with SummaryTest { | 34 class SummarizeElementsTest extends AbstractSingleUnitTest with SummaryTest { |
| 35 /** | 35 /** |
| 36 * The list of absolute unit URIs corresponding to the compilation units in | 36 * The list of absolute unit URIs corresponding to the compilation units in |
| 37 * [unlinkedUnits]. | 37 * [unlinkedUnits]. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } else { | 158 } else { |
| 159 UnlinkedPublicNamespace namespace = | 159 UnlinkedPublicNamespace namespace = |
| 160 computePublicNamespaceFromText(text, source); | 160 computePublicNamespaceFromText(text, source); |
| 161 expect(canonicalize(namespace), | 161 expect(canonicalize(namespace), |
| 162 canonicalize(unlinkedUnits[i].publicNamespace), | 162 canonicalize(unlinkedUnits[i].publicNamespace), |
| 163 reason: 'publicNamespace(${unitUris[i]})'); | 163 reason: 'publicNamespace(${unitUris[i]})'); |
| 164 } | 164 } |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 } | 167 } |
| OLD | NEW |