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'; |
11 | 11 |
12 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 12 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
13 import 'package:analysis_server/src/constants.dart'; | 13 import 'package:analysis_server/src/constants.dart'; |
14 import 'package:path/path.dart'; | 14 import 'package:path/path.dart'; |
15 import 'package:unittest/unittest.dart'; | 15 import 'package:test/test.dart'; |
16 | 16 |
17 import 'integration_test_methods.dart'; | 17 import 'integration_test_methods.dart'; |
18 import 'protocol_matchers.dart'; | 18 import 'protocol_matchers.dart'; |
19 | 19 |
20 const Matcher isBool = const isInstanceOf<bool>(); | 20 const Matcher isBool = const isInstanceOf<bool>(); |
21 | 21 |
22 const Matcher isInt = const isInstanceOf<int>(); | 22 const Matcher isInt = const isInstanceOf<int>(); |
23 | 23 |
24 const Matcher isNotification = const MatchesJsonObject( | 24 const Matcher isNotification = const MatchesJsonObject( |
25 'notification', const {'event': isString}, | 25 'notification', const {'event': isString}, |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 void populateMismatches(item, List<MismatchDescriber> mismatches); | 920 void populateMismatches(item, List<MismatchDescriber> mismatches); |
921 | 921 |
922 /** | 922 /** |
923 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 923 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
924 */ | 924 */ |
925 MismatchDescriber simpleDescription(String description) => | 925 MismatchDescriber simpleDescription(String description) => |
926 (Description mismatchDescription) { | 926 (Description mismatchDescription) { |
927 mismatchDescription.add(description); | 927 mismatchDescription.add(description); |
928 }; | 928 }; |
929 } | 929 } |
OLD | NEW |