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

Side by Side Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 402493002: Remove 'errorCode' field from AnalysisError in the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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.integration.analysis; 5 library test.integration.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 'startLine': isInt, 202 'startLine': isInt,
203 'startColumn': isInt 203 'startColumn': isInt
204 }); 204 });
205 205
206 final Matcher isAnalysisError = new MatchesJsonObject('AnalysisError', { 206 final Matcher isAnalysisError = new MatchesJsonObject('AnalysisError', {
207 'severity': isErrorSeverity, 207 'severity': isErrorSeverity,
208 'type': isErrorType, 208 'type': isErrorType,
209 'location': isLocation, 209 'location': isLocation,
210 'message': isString, 210 'message': isString,
211 }, optionalFields: { 211 }, optionalFields: {
212 'correction': isString, 212 'correction': isString
213 // TODO(paulberry): remove 'errorCode' once server stops sending it
214 'errorCode': anything
215 }); 213 });
216 214
217 const Matcher isAnalysisStatus = const MatchesJsonObject('AnalysisStatus', const 215 const Matcher isAnalysisStatus = const MatchesJsonObject('AnalysisStatus', const
218 { 216 {
219 'analyzing': isBool 217 'analyzing': isBool
220 }, optionalFields: const { 218 }, optionalFields: const {
221 'analysisTarget': isString 219 'analysisTarget': isString
222 }); 220 });
223 221
224 222
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 * Record a message that was exchanged with the server, and print it out if 530 * Record a message that was exchanged with the server, and print it out if
533 * [debugStdio] has been called. 531 * [debugStdio] has been called.
534 */ 532 */
535 void _recordStdio(String line) { 533 void _recordStdio(String line) {
536 if (_debuggingStdio) { 534 if (_debuggingStdio) {
537 print(line); 535 print(line);
538 } 536 }
539 _recordedStdio.add(line); 537 _recordedStdio.add(line);
540 } 538 }
541 } 539 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | pkg/analysis_server/test/operation/operation_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698