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

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

Issue 574573002: Add SourceFileEdit.time field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak 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 2d2f1c085aa3e90ee9f38d2bc24124428c0f6ad2..be666fe05092a53f0f68ce9d0a2c2952a2c57de4 100644
--- a/pkg/analysis_server/test/edit/fixes_test.dart
+++ b/pkg/analysis_server/test/edit/fixes_test.dart
@@ -8,10 +8,10 @@ import 'dart:async';
import 'package:analysis_server/src/edit/edit_domain.dart';
import 'package:analysis_server/src/protocol.dart';
-import '../reflective_tests.dart';
import 'package:unittest/unittest.dart' hide ERROR;
import '../analysis_abstract.dart';
+import '../reflective_tests.dart';
main() {
@@ -74,11 +74,11 @@ bar() {
});
}
- void _isSyntacticErrorWithSingleFix(AnalysisErrorFixes fixes) {
- AnalysisError error = fixes.error;
- expect(error.severity, AnalysisErrorSeverity.ERROR);
- expect(error.type, AnalysisErrorType.SYNTACTIC_ERROR);
- expect(fixes.fixes, hasLength(1));
+ List<AnalysisErrorFixes> _getFixes(int offset) {
+ Request request = new EditGetFixesParams(testFile, offset).toRequest('0');
+ Response response = handleSuccessfulRequest(request);
+ var result = new EditGetFixesResult.fromResponse(response);
+ return result.fixes;
}
List<AnalysisErrorFixes> _getFixesAt(String search) {
@@ -87,10 +87,10 @@ bar() {
}
- List<AnalysisErrorFixes> _getFixes(int offset) {
- Request request = new EditGetFixesParams(testFile, offset).toRequest('0');
- Response response = handleSuccessfulRequest(request);
- var result = new EditGetFixesResult.fromResponse(response);
- return result.fixes;
+ void _isSyntacticErrorWithSingleFix(AnalysisErrorFixes fixes) {
+ AnalysisError error = fixes.error;
+ expect(error.severity, AnalysisErrorSeverity.ERROR);
+ expect(error.type, AnalysisErrorType.SYNTACTIC_ERROR);
+ expect(fixes.fixes, hasLength(1));
}
}
« no previous file with comments | « pkg/analysis_server/test/edit/assists_test.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698