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

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

Issue 1788223002: Deprecate the generated AST library and clean up imports (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.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/ast/ast.dart';
11 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
12 import 'package:analyzer/src/generated/ast.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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL); 225 expect(refactoringStatus.severity, RefactoringProblemSeverity.FATAL);
226 expect(refactoringStatus.message, 'msg'); 226 expect(refactoringStatus.message, 'msg');
227 } 227 }
228 228
229 void test_newWarning() { 229 void test_newWarning() {
230 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg'); 230 RefactoringStatus refactoringStatus = new RefactoringStatus.warning('msg');
231 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING); 231 expect(refactoringStatus.severity, RefactoringProblemSeverity.WARNING);
232 expect(refactoringStatus.message, 'msg'); 232 expect(refactoringStatus.message, 'msg');
233 } 233 }
234 } 234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698