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

Side by Side Diff: pkg/analysis_server/test/services/correction/status_test.dart

Issue 1527793003: Clean up imports in analysis_server and analyzer_cli (and one missed in analyzer) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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.services.correction.status; 5 library test.services.correction.status;
6 6
7 import 'package:analysis_server/src/protocol_server.dart' hide Element; 7 import 'package:analysis_server/src/protocol_server.dart' hide Element;
8 import 'package:analysis_server/src/services/correction/source_range.dart'; 8 import 'package:analysis_server/src/services/correction/source_range.dart';
9 import 'package:analysis_server/src/services/correction/status.dart'; 9 import 'package:analysis_server/src/services/correction/status.dart';
10 import 'package:analysis_server/src/services/search/search_engine.dart'; 10 import 'package:analysis_server/src/services/search/search_engine.dart';
11 import 'package:analyzer/dart/element/element.dart';
11 import 'package:analyzer/src/generated/ast.dart'; 12 import 'package:analyzer/src/generated/ast.dart';
12 import 'package:analyzer/src/generated/element.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:test_reflective_loader/test_reflective_loader.dart'; 14 import 'package:test_reflective_loader/test_reflective_loader.dart';
15 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
16 16
17 import '../../abstract_single_unit.dart'; 17 import '../../abstract_single_unit.dart';
18 import '../../utils.dart'; 18 import '../../utils.dart';
19 19
20 main() { 20 main() {
21 initializeTestEnvironment(); 21 initializeTestEnvironment();
22 defineReflectiveTests(RefactoringLocationTest); 22 defineReflectiveTests(RefactoringLocationTest);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL); 218 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL);
219 expect(refactoringStatus.message, 'msg'); 219 expect(refactoringStatus.message, 'msg');
220 } 220 }
221 221
222 void test_newWarning() { 222 void test_newWarning() {
223 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg'); 223 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg');
224 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING); 224 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING);
225 expect(refactoringStatus.message, 'msg'); 225 expect(refactoringStatus.message, 'msg');
226 } 226 }
227 } 227 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698