| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 /** | 287 /** |
| 288 * An error result from a server request. | 288 * An error result from a server request. |
| 289 */ | 289 */ |
| 290 class ServerErrorMessage { | 290 class ServerErrorMessage { |
| 291 final Map message; | 291 final Map message; |
| 292 | 292 |
| 293 ServerErrorMessage(this.message); | 293 ServerErrorMessage(this.message); |
| 294 | 294 |
| 295 dynamic get error => message['error']; | 295 dynamic get error => message['error']; |
| 296 |
| 297 String toString() => message.toString(); |
| 296 } | 298 } |
| 297 | 299 |
| 298 /** | 300 /** |
| 299 * Wrapper class for Matcher which doesn't create the underlying Matcher object | 301 * Wrapper class for Matcher which doesn't create the underlying Matcher object |
| 300 * until it is needed. This is necessary in order to create matchers that can | 302 * until it is needed. This is necessary in order to create matchers that can |
| 301 * refer to themselves (so that recursive data structures can be represented). | 303 * refer to themselves (so that recursive data structures can be represented). |
| 302 */ | 304 */ |
| 303 class LazyMatcher implements Matcher { | 305 class LazyMatcher implements Matcher { |
| 304 /** | 306 /** |
| 305 * Callback that will be used to create the matcher the first time it is | 307 * Callback that will be used to create the matcher the first time it is |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 void populateMismatches(item, List<MismatchDescriber> mismatches); | 984 void populateMismatches(item, List<MismatchDescriber> mismatches); |
| 983 | 985 |
| 984 /** | 986 /** |
| 985 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 987 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
| 986 */ | 988 */ |
| 987 MismatchDescriber simpleDescription(String description) => | 989 MismatchDescriber simpleDescription(String description) => |
| 988 (Description mismatchDescription) { | 990 (Description mismatchDescription) { |
| 989 mismatchDescription.add(description); | 991 mismatchDescription.add(description); |
| 990 }; | 992 }; |
| 991 } | 993 } |
| OLD | NEW |