Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1763)

Unified Diff: pkg/analyzer/test/src/task/model_test.dart

Issue 1136603002: Remove CompositeResultDescriptor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« pkg/analyzer/lib/src/task/model.dart ('K') | « pkg/analyzer/lib/task/model.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/model_test.dart
diff --git a/pkg/analyzer/test/src/task/model_test.dart b/pkg/analyzer/test/src/task/model_test.dart
index 9a402a291d9fc3117a1a0eeee0e1ecc4aade5e81..74723e47723a390d8aca9073f6787a5bb0e5dec2 100644
--- a/pkg/analyzer/test/src/task/model_test.dart
+++ b/pkg/analyzer/test/src/task/model_test.dart
@@ -17,7 +17,6 @@ import 'test_support.dart';
main() {
groupSep = ' | ';
runReflectiveTests(AnalysisTaskTest);
- runReflectiveTests(ContributionPointImplTest);
runReflectiveTests(ResultDescriptorImplTest);
runReflectiveTests(SimpleResultCachingPolicyTest);
runReflectiveTests(TaskDescriptorImplTest);
@@ -57,43 +56,6 @@ class AnalysisTaskTest extends EngineTestCase {
}
@reflectiveTest
-class ContributionPointImplTest extends EngineTestCase {
- test_contributors_empty() {
- CompositeResultDescriptorImpl point =
- new CompositeResultDescriptorImpl('point');
- List<ResultDescriptor> contributors = point.contributors;
- expect(contributors, isEmpty);
- }
-
- test_contributors_nonEmpty() {
- ResultDescriptorImpl result1 = new ResultDescriptorImpl('result1', null);
- ResultDescriptorImpl result2 = new ResultDescriptorImpl('result2', null);
- CompositeResultDescriptorImpl point =
- new CompositeResultDescriptorImpl('point');
- point.recordContributor(result1);
- point.recordContributor(result2);
- List<ResultDescriptor> contributors = point.contributors;
- expect(contributors, isNotNull);
- expect(contributors, hasLength(2));
- if (!(contributors[0] == result1 && contributors[1] == result2) ||
- (contributors[0] == result2 && contributors[1] == result1)) {
- fail("Invalid contributors: $contributors");
- }
- }
-
- test_create() {
- expect(new CompositeResultDescriptorImpl('name'), isNotNull);
- }
-
- test_name() {
- String name = 'point';
- CompositeResultDescriptorImpl point =
- new CompositeResultDescriptorImpl(name);
- expect(point.name, name);
- }
-}
-
-@reflectiveTest
class ResultDescriptorImplTest extends EngineTestCase {
test_create_withCachingPolicy() {
ResultCachingPolicy policy = new SimpleResultCachingPolicy(128, 16);
@@ -102,16 +64,6 @@ class ResultDescriptorImplTest extends EngineTestCase {
expect(result.cachingPolicy, same(policy));
}
- test_create_withContribution() {
- CompositeResultDescriptorImpl point =
- new CompositeResultDescriptorImpl('point');
- ResultDescriptorImpl result =
- new ResultDescriptorImpl('result', null, contributesTo: point);
- expect(result, isNotNull);
- List<ResultDescriptor> contributors = point.contributors;
- expect(contributors, unorderedEquals([result]));
- }
-
test_create_withoutCachingPolicy() {
ResultDescriptorImpl result = new ResultDescriptorImpl('result', null);
ResultCachingPolicy cachingPolicy = result.cachingPolicy;
« pkg/analyzer/lib/src/task/model.dart ('K') | « pkg/analyzer/lib/task/model.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698