| 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.get.errors; | 5 library test.integration.analysis.get.errors; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:test/test.dart'; |
| 10 | 10 |
| 11 import '../integration_tests.dart'; | 11 import '../integration_tests.dart'; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Base class for testing the "analysis.getErrors" request. | 14 * Base class for testing the "analysis.getErrors" request. |
| 15 */ | 15 */ |
| 16 class AnalysisDomainGetErrorsTest | 16 class AnalysisDomainGetErrorsTest |
| 17 extends AbstractAnalysisServerIntegrationTest { | 17 extends AbstractAnalysisServerIntegrationTest { |
| 18 /** | 18 /** |
| 19 * True if the "analysis.getErrors" request should be made after analysis is | 19 * True if the "analysis.getErrors" request should be made after analysis is |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 expect(result.errors, equals(currentAnalysisErrors[pathname])); | 36 expect(result.errors, equals(currentAnalysisErrors[pathname])); |
| 37 }); | 37 }); |
| 38 } | 38 } |
| 39 if (afterAnalysis) { | 39 if (afterAnalysis) { |
| 40 return analysisFinished.then((_) => finishTest()); | 40 return analysisFinished.then((_) => finishTest()); |
| 41 } else { | 41 } else { |
| 42 return finishTest(); | 42 return finishTest(); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 } | 45 } |
| OLD | NEW |