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; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:collection'; | 6 import 'dart:collection'; |
9 import 'dart:convert'; | 7 import 'dart:convert'; |
10 import 'dart:io'; | 8 import 'dart:io'; |
11 | 9 |
12 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
13 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
14 import 'package:path/path.dart'; | 12 import 'package:path/path.dart'; |
15 import 'package:test/test.dart'; | 13 import 'package:test/test.dart'; |
16 | 14 |
17 import 'integration_test_methods.dart'; | 15 import 'integration_test_methods.dart'; |
18 import 'protocol_matchers.dart'; | 16 import 'protocol_matchers.dart'; |
19 | 17 |
20 const Matcher isBool = const isInstanceOf<bool>(); | 18 const Matcher isBool = const isInstanceOf<bool>(); |
21 | 19 |
22 const Matcher isInt = const isInstanceOf<int>(); | 20 const Matcher isInt = const isInstanceOf<int>(); |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 void populateMismatches(item, List<MismatchDescriber> mismatches); | 977 void populateMismatches(item, List<MismatchDescriber> mismatches); |
980 | 978 |
981 /** | 979 /** |
982 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 980 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
983 */ | 981 */ |
984 MismatchDescriber simpleDescription(String description) => | 982 MismatchDescriber simpleDescription(String description) => |
985 (Description mismatchDescription) { | 983 (Description mismatchDescription) { |
986 mismatchDescription.add(description); | 984 mismatchDescription.add(description); |
987 }; | 985 }; |
988 } | 986 } |
OLD | NEW |