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

Side by Side Diff: pkg/analysis_server/test/edit/fixes_test.dart

Issue 1778663006: Clean up some warnings (issue 25964) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.edit.fixes; 5 library test.edit.fixes;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/domain_analysis.dart';
11 import 'package:analysis_server/src/edit/edit_domain.dart'; 10 import 'package:analysis_server/src/edit/edit_domain.dart';
12 import 'package:plugin/manager.dart'; 11 import 'package:plugin/manager.dart';
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart' hide ERROR; 13 import 'package:unittest/unittest.dart' hide ERROR;
15 14
16 import '../analysis_abstract.dart'; 15 import '../analysis_abstract.dart';
17 import '../mocks.dart';
18 import '../utils.dart'; 16 import '../utils.dart';
19 17
20 main() { 18 main() {
21 initializeTestEnvironment(); 19 initializeTestEnvironment();
22 defineReflectiveTests(FixesTest); 20 defineReflectiveTests(FixesTest);
23 } 21 }
24 22
25 @reflectiveTest 23 @reflectiveTest
26 class FixesTest extends AbstractAnalysisTest { 24 class FixesTest extends AbstractAnalysisTest {
27 @override 25 @override
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return await _getFixes(offset); 136 return await _getFixes(offset);
139 } 137 }
140 138
141 void _isSyntacticErrorWithSingleFix(AnalysisErrorFixes fixes) { 139 void _isSyntacticErrorWithSingleFix(AnalysisErrorFixes fixes) {
142 AnalysisError error = fixes.error; 140 AnalysisError error = fixes.error;
143 expect(error.severity, AnalysisErrorSeverity.ERROR); 141 expect(error.severity, AnalysisErrorSeverity.ERROR);
144 expect(error.type, AnalysisErrorType.SYNTACTIC_ERROR); 142 expect(error.type, AnalysisErrorType.SYNTACTIC_ERROR);
145 expect(fixes.fixes, hasLength(1)); 143 expect(fixes.fixes, hasLength(1));
146 } 144 }
147 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698