Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: pkg/analysis_server/test/integration/analysis/get_errors.dart

Issue 2681493002: [Gardening] Remove an invalid (and flaky) test (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors_after_analysis_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library test.integration.analysis.get.errors;
6
7 import 'dart:async';
8
9 import 'package:test/test.dart';
10
11 import '../integration_tests.dart';
12
13 /**
14 * Base class for testing the "analysis.getErrors" request.
15 */
16 class AnalysisDomainGetErrorsTest
17 extends AbstractAnalysisServerIntegrationTest {
18 /**
19 * True if the "analysis.getErrors" request should be made after analysis is
20 * complete.
21 */
22 final bool afterAnalysis;
23
24 AnalysisDomainGetErrorsTest(this.afterAnalysis);
25
26 test_getErrors() {
27 String pathname = sourcePath('test.dart');
28 String text = r'''
29 main() {
30 var x // parse error: missing ';'
31 }''';
32 writeFile(pathname, text);
33 standardAnalysisSetup();
34 Future finishTest() {
35 return sendAnalysisGetErrors(pathname).then((result) {
36 expect(result.errors, equals(currentAnalysisErrors[pathname]));
37 });
38 }
39 if (afterAnalysis) {
40 return analysisFinished.then((_) => finishTest());
41 } else {
42 return finishTest();
43 }
44 }
45 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors_after_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698