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

Side by Side Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1176983002: Capture more errors and improve duplicate error removal (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.dart_test; 5 library test.src.task.dart_test;
6 6
7 import 'package:analyzer/src/context/cache.dart'; 7 import 'package:analyzer/src/context/cache.dart';
8 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/src/generated/ast.dart';
9 import 'package:analyzer/src/generated/constant.dart'; 9 import 'package:analyzer/src/generated/constant.dart';
10 import 'package:analyzer/src/generated/element.dart'; 10 import 'package:analyzer/src/generated/element.dart';
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 test_buildInputs() { 2097 test_buildInputs() {
2098 Map<String, TaskInput> inputs = LibraryUnitErrorsTask 2098 Map<String, TaskInput> inputs = LibraryUnitErrorsTask
2099 .buildInputs(new LibrarySpecificUnit(emptySource, emptySource)); 2099 .buildInputs(new LibrarySpecificUnit(emptySource, emptySource));
2100 expect(inputs, isNotNull); 2100 expect(inputs, isNotNull);
2101 expect(inputs.keys, unorderedEquals([ 2101 expect(inputs.keys, unorderedEquals([
2102 LibraryUnitErrorsTask.BUILD_FUNCTION_TYPE_ALIASES_ERRORS_INPUT, 2102 LibraryUnitErrorsTask.BUILD_FUNCTION_TYPE_ALIASES_ERRORS_INPUT,
2103 LibraryUnitErrorsTask.CONSTRUCTORS_ERRORS_INPUT, 2103 LibraryUnitErrorsTask.CONSTRUCTORS_ERRORS_INPUT,
2104 LibraryUnitErrorsTask.HINTS_INPUT, 2104 LibraryUnitErrorsTask.HINTS_INPUT,
2105 LibraryUnitErrorsTask.RESOLVE_REFERENCES_ERRORS_INPUT, 2105 LibraryUnitErrorsTask.RESOLVE_REFERENCES_ERRORS_INPUT,
2106 LibraryUnitErrorsTask.RESOLVE_TYPE_NAMES_ERRORS_INPUT, 2106 LibraryUnitErrorsTask.RESOLVE_TYPE_NAMES_ERRORS_INPUT,
2107 LibraryUnitErrorsTask.VARIABLE_REFERENCE_ERRORS_INPUT,
2107 LibraryUnitErrorsTask.VERIFY_ERRORS_INPUT 2108 LibraryUnitErrorsTask.VERIFY_ERRORS_INPUT
2108 ])); 2109 ]));
2109 } 2110 }
2110 2111
2111 test_constructor() { 2112 test_constructor() {
2112 LibraryUnitErrorsTask task = 2113 LibraryUnitErrorsTask task =
2113 new LibraryUnitErrorsTask(context, emptySource); 2114 new LibraryUnitErrorsTask(context, emptySource);
2114 expect(task, isNotNull); 2115 expect(task, isNotNull);
2115 expect(task.context, context); 2116 expect(task.context, context);
2116 expect(task.target, emptySource); 2117 expect(task.target, emptySource);
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 /** 2717 /**
2717 * Fill [errorListener] with [result] errors in the current [task]. 2718 * Fill [errorListener] with [result] errors in the current [task].
2718 */ 2719 */
2719 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { 2720 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) {
2720 List<AnalysisError> errors = task.outputs[result]; 2721 List<AnalysisError> errors = task.outputs[result];
2721 expect(errors, isNotNull, reason: result.name); 2722 expect(errors, isNotNull, reason: result.name);
2722 errorListener = new GatheringErrorListener(); 2723 errorListener = new GatheringErrorListener();
2723 errorListener.addAll(errors); 2724 errorListener.addAll(errors);
2724 } 2725 }
2725 } 2726 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698