| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 Future sendServerSetSubscriptions(List<ServerService> subscriptions) { | 170 Future sendServerSetSubscriptions(List<ServerService> subscriptions) { |
| 171 _subscribedToServerStatus = subscriptions.contains(ServerService.STATUS); | 171 _subscribedToServerStatus = subscriptions.contains(ServerService.STATUS); |
| 172 return super.sendServerSetSubscriptions(subscriptions); | 172 return super.sendServerSetSubscriptions(subscriptions); |
| 173 } | 173 } |
| 174 | 174 |
| 175 /** | 175 /** |
| 176 * The server is automatically started before every test, and a temporary | 176 * The server is automatically started before every test, and a temporary |
| 177 * [sourceDirectory] is created. | 177 * [sourceDirectory] is created. |
| 178 */ | 178 */ |
| 179 Future setUp() { | 179 Future setUp() { |
| 180 sourceDirectory = Directory.systemTemp.createTempSync('analysisServer'); | 180 sourceDirectory = new Directory(Directory.systemTemp |
| 181 .createTempSync('analysisServer') |
| 182 .resolveSymbolicLinksSync()); |
| 181 | 183 |
| 182 onAnalysisErrors.listen((AnalysisErrorsParams params) { | 184 onAnalysisErrors.listen((AnalysisErrorsParams params) { |
| 183 currentAnalysisErrors[params.file] = params.errors; | 185 currentAnalysisErrors[params.file] = params.errors; |
| 184 }); | 186 }); |
| 185 Completer serverConnected = new Completer(); | 187 Completer serverConnected = new Completer(); |
| 186 onServerConnected.listen((_) { | 188 onServerConnected.listen((_) { |
| 187 outOfTestExpect(serverConnected.isCompleted, isFalse); | 189 outOfTestExpect(serverConnected.isCompleted, isFalse); |
| 188 serverConnected.complete(); | 190 serverConnected.complete(); |
| 189 }); | 191 }); |
| 190 onServerError.listen((ServerErrorParams params) { | 192 onServerError.listen((ServerErrorParams params) { |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 void populateMismatches(item, List<MismatchDescriber> mismatches); | 968 void populateMismatches(item, List<MismatchDescriber> mismatches); |
| 967 | 969 |
| 968 /** | 970 /** |
| 969 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 971 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
| 970 */ | 972 */ |
| 971 MismatchDescriber simpleDescription(String description) => | 973 MismatchDescriber simpleDescription(String description) => |
| 972 (Description mismatchDescription) { | 974 (Description mismatchDescription) { |
| 973 mismatchDescription.add(description); | 975 mismatchDescription.add(description); |
| 974 }; | 976 }; |
| 975 } | 977 } |
| OLD | NEW |