| 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.domain; | 5 library test.integration.analysis.domain; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/constants.dart'; | 9 import 'package:analysis_server/src/constants.dart'; |
| 10 import 'package:analysis_testing/reflective_tests.dart'; | 10 import 'package:analysis_testing/reflective_tests.dart'; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 expect(result['hovers'], hasLength(0)); | 159 expect(result['hovers'], hasLength(0)); |
| 160 }); | 160 }); |
| 161 }); | 161 }); |
| 162 } | 162 } |
| 163 | 163 |
| 164 test_getErrors_before_analysis() { | 164 test_getErrors_before_analysis() { |
| 165 return getErrorsTest(false); | 165 return getErrorsTest(false); |
| 166 } | 166 } |
| 167 | 167 |
| 168 test_getErrors_after_analysis() { | 168 test_getErrors_after_analysis() { |
| 169 debugStdio(); | |
| 170 return getErrorsTest(true); | 169 return getErrorsTest(true); |
| 171 } | 170 } |
| 172 | 171 |
| 173 Future getErrorsTest(bool afterAnalysis) { | 172 Future getErrorsTest(bool afterAnalysis) { |
| 174 String filename = 'test.dart'; | 173 String filename = 'test.dart'; |
| 175 String pathname = normalizePath(filename); | 174 String pathname = normalizePath(filename); |
| 176 String text = | 175 String text = |
| 177 r''' | 176 r''' |
| 178 main() { | 177 main() { |
| 179 var x // parse error: missing ';' | 178 var x // parse error: missing ';' |
| (...skipping 12 matching lines...) Expand all Loading... |
| 192 return analysisFinished.then((_) => finishTest()); | 191 return analysisFinished.then((_) => finishTest()); |
| 193 } else { | 192 } else { |
| 194 return finishTest(); | 193 return finishTest(); |
| 195 } | 194 } |
| 196 } | 195 } |
| 197 } | 196 } |
| 198 | 197 |
| 199 main() { | 198 main() { |
| 200 runReflectiveTests(AnalysisDomainIntegrationTest); | 199 runReflectiveTests(AnalysisDomainIntegrationTest); |
| 201 } | 200 } |
| OLD | NEW |