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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'package:analysis_server/plugin/protocol/protocol.dart'; 8 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:analyzer/src/generated/sdk.dart'; 9 import 'package:analyzer/src/generated/sdk.dart';
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
11 import 'package:test/test.dart'; 11 import 'package:test/test.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 13
14 import '../../mock_sdk.dart'; 14 import '../../mock_sdk.dart';
15 import '../integration_tests.dart'; 15 import '../support/integration_tests.dart';
16 16
17 main() { 17 main() {
18 defineReflectiveSuite(() { 18 defineReflectiveSuite(() {
19 defineReflectiveTests(AnalysisDomainGetErrorsTest); 19 defineReflectiveTests(AnalysisDomainGetErrorsTest);
20 }); 20 });
21 } 21 }
22 22
23 /** 23 /**
24 * Tests that when an SDK path is specified on the command-line (via the `--sdk` 24 * Tests that when an SDK path is specified on the command-line (via the `--sdk`
25 * argument) that the specified SDK is used. 25 * argument) that the specified SDK is used.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 import 'dart:fake'; 86 import 'dart:fake';
87 '''; 87 ''';
88 writeFile(pathname, text); 88 writeFile(pathname, text);
89 standardAnalysisSetup(); 89 standardAnalysisSetup();
90 await analysisFinished; 90 await analysisFinished;
91 List<AnalysisError> errors = currentAnalysisErrors[pathname]; 91 List<AnalysisError> errors = currentAnalysisErrors[pathname];
92 expect(errors, hasLength(1)); 92 expect(errors, hasLength(1));
93 expect(errors[0].code, 'unused_import'); 93 expect(errors[0].code, 'unused_import');
94 } 94 }
95 } 95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698