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

Side by Side Diff: pkg/analysis_server/test/analysis/notification_errors_test.dart

Issue 2426723002: (TBR) Fix more failing tests (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/update_content_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.analysis.notification_errors; 5 library test.analysis.notification_errors;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; 7 import 'package:analysis_server/plugin/protocol/protocol.dart';
8 import 'package:analysis_server/src/constants.dart'; 8 import 'package:analysis_server/src/constants.dart';
9 import 'package:analysis_server/src/domain_analysis.dart'; 9 import 'package:analysis_server/src/domain_analysis.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 import 'does_not_exist.dart'; 47 import 'does_not_exist.dart';
48 '''); 48 ''');
49 await waitForTasksFinished(); 49 await waitForTasksFinished();
50 List<AnalysisError> errors = filesErrors[testFile]; 50 List<AnalysisError> errors = filesErrors[testFile];
51 // Verify that we are generating only 1 error for the bad URI. 51 // Verify that we are generating only 1 error for the bad URI.
52 // https://github.com/dart-lang/sdk/issues/23754 52 // https://github.com/dart-lang/sdk/issues/23754
53 expect(errors, hasLength(1)); 53 expect(errors, hasLength(1));
54 AnalysisError error = errors[0]; 54 AnalysisError error = errors[0];
55 expect(error.severity, AnalysisErrorSeverity.ERROR); 55 expect(error.severity, AnalysisErrorSeverity.ERROR);
56 expect(error.type, AnalysisErrorType.COMPILE_TIME_ERROR); 56 expect(error.type, AnalysisErrorType.COMPILE_TIME_ERROR);
57 expect(error.message, startsWith('Target of URI does not exist')); 57 expect(error.message, startsWith("Target of URI doesn't exist"));
58 } 58 }
59 59
60 test_lintError() async { 60 test_lintError() async {
61 var camelCaseTypesLintName = 'camel_case_types'; 61 var camelCaseTypesLintName = 'camel_case_types';
62 62
63 addFile( 63 addFile(
64 '$projectPath/.analysis_options', 64 '$projectPath/.analysis_options',
65 ''' 65 '''
66 linter: 66 linter:
67 rules: 67 rules:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 '''); 129 ''');
130 await waitForTasksFinished(); 130 await waitForTasksFinished();
131 List<AnalysisError> errors = filesErrors[testFile]; 131 List<AnalysisError> errors = filesErrors[testFile];
132 expect(errors, hasLength(1)); 132 expect(errors, hasLength(1));
133 AnalysisError error = errors[0]; 133 AnalysisError error = errors[0];
134 expect(error.severity, AnalysisErrorSeverity.WARNING); 134 expect(error.severity, AnalysisErrorSeverity.WARNING);
135 expect(error.type, AnalysisErrorType.STATIC_WARNING); 135 expect(error.type, AnalysisErrorType.STATIC_WARNING);
136 } 136 }
137 } 137 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/analysis/update_content_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698