| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |