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

Unified Diff: pkg/analysis_server/test/edit/fixes_test.dart

Issue 531153002: Clarify type names in analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: pkg/analysis_server/test/edit/fixes_test.dart
diff --git a/pkg/analysis_server/test/edit/fixes_test.dart b/pkg/analysis_server/test/edit/fixes_test.dart
index be023072803ba0dfa7bbfb7464dcf37d532f26fa..271f8e9d6517f9262e94b1257a9b7fe457a8444f 100644
--- a/pkg/analysis_server/test/edit/fixes_test.dart
+++ b/pkg/analysis_server/test/edit/fixes_test.dart
@@ -41,13 +41,13 @@ bar() {
return waitForTasksFinished().then((_) {
// print(1)
{
- List<ErrorFixes> errorFixes = _getFixesAt('print(1)');
+ List<AnalysisErrorFixes> errorFixes = _getFixesAt('print(1)');
expect(errorFixes, hasLength(1));
_isSyntacticErrorWithSingleFix(errorFixes[0]);
}
// print(10)
{
- List<ErrorFixes> errorFixes = _getFixesAt('print(10)');
+ List<AnalysisErrorFixes> errorFixes = _getFixesAt('print(10)');
expect(errorFixes, hasLength(2));
_isSyntacticErrorWithSingleFix(errorFixes[0]);
_isSyntacticErrorWithSingleFix(errorFixes[1]);
@@ -55,20 +55,20 @@ bar() {
});
}
- void _isSyntacticErrorWithSingleFix(ErrorFixes fixes) {
+ void _isSyntacticErrorWithSingleFix(AnalysisErrorFixes fixes) {
AnalysisError error = fixes.error;
- expect(error.severity, ErrorSeverity.ERROR);
- expect(error.type, ErrorType.SYNTACTIC_ERROR);
+ expect(error.severity, AnalysisErrorSeverity.ERROR);
+ expect(error.type, AnalysisErrorType.SYNTACTIC_ERROR);
expect(fixes.fixes, hasLength(1));
}
- List<ErrorFixes> _getFixesAt(String search) {
+ List<AnalysisErrorFixes> _getFixesAt(String search) {
int offset = findOffset(search);
return _getFixes(offset);
}
- List<ErrorFixes> _getFixes(int offset) {
+ List<AnalysisErrorFixes> _getFixes(int offset) {
Request request = new EditGetFixesParams(testFile, offset).toRequest('0');
Response response = handleSuccessfulRequest(request);
var result = new EditGetFixesResult.fromResponse(response);

Powered by Google App Engine
This is Rietveld 408576698