| 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.domain.analysis.abstract; | 5 library test.domain.analysis.abstract; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class AbstractAnalysisTest { | 42 class AbstractAnalysisTest { |
| 43 MockServerChannel serverChannel; | 43 MockServerChannel serverChannel; |
| 44 MemoryResourceProvider resourceProvider; | 44 MemoryResourceProvider resourceProvider; |
| 45 MockPackageMapProvider packageMapProvider; | 45 MockPackageMapProvider packageMapProvider; |
| 46 AnalysisServer server; | 46 AnalysisServer server; |
| 47 RequestHandler handler; | 47 RequestHandler handler; |
| 48 | 48 |
| 49 Map<String, List<String>> analysisSubscriptions = {}; | 49 Map<String, List<String>> analysisSubscriptions = {}; |
| 50 | 50 |
| 51 String projectPath = '/project'; | 51 String projectPath = '/project'; |
| 52 String testFolder = '/project/bin/'; |
| 52 String testFile = '/project/bin/test.dart'; | 53 String testFile = '/project/bin/test.dart'; |
| 53 String testCode; | 54 String testCode; |
| 54 | 55 |
| 55 // Map<String, List<AnalysisError>> filesErrors = {}; | 56 // Map<String, List<AnalysisError>> filesErrors = {}; |
| 56 // Map<String, List<Map<String, Object>>> filesHighlights = {}; | 57 // Map<String, List<Map<String, Object>>> filesHighlights = {}; |
| 57 // Map<String, List<Map<String, Object>>> filesNavigation = {}; | 58 // Map<String, List<Map<String, Object>>> filesNavigation = {}; |
| 58 | 59 |
| 59 | 60 |
| 60 AbstractAnalysisTest() { | 61 AbstractAnalysisTest() { |
| 61 } | 62 } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 return waitForServerOperationsPerformed(server); | 254 return waitForServerOperationsPerformed(server); |
| 254 } | 255 } |
| 255 | 256 |
| 256 static String _getCodeString(code) { | 257 static String _getCodeString(code) { |
| 257 if (code is List<String>) { | 258 if (code is List<String>) { |
| 258 code = code.join('\n'); | 259 code = code.join('\n'); |
| 259 } | 260 } |
| 260 return code as String; | 261 return code as String; |
| 261 } | 262 } |
| 262 } | 263 } |
| OLD | NEW |