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

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

Issue 2394683006: Switch analysis_server to use 'package:test'. (Closed)
Patch Set: Created 4 years, 2 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 library test.integration.analysis.get.errors; 5 library test.integration.analysis.get.errors;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analysis_server/plugin/protocol/protocol.dart'; 10 import 'package:analysis_server/plugin/protocol/protocol.dart';
11 import 'package:analyzer/src/generated/sdk.dart'; 11 import 'package:analyzer/src/generated/sdk.dart';
12 import 'package:path/path.dart' as path; 12 import 'package:path/path.dart' as path;
13 import 'package:test/test.dart';
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; 14 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart';
15 15
16 import '../../mock_sdk.dart'; 16 import '../../mock_sdk.dart';
17 import '../../utils.dart'; 17 import '../../utils.dart';
18 import '../integration_tests.dart'; 18 import '../integration_tests.dart';
19 19
20 main() { 20 main() {
21 initializeTestEnvironment(); 21 initializeTestEnvironment();
22 defineReflectiveTests(AnalysisDomainGetErrorsTest); 22 defineReflectiveSuite(() {
23 defineReflectiveTests(AnalysisDomainGetErrorsTest);
24 });
23 } 25 }
24 26
25 /** 27 /**
26 * Tests that when an SDK path is specified on the command-line (via the `--sdk` 28 * Tests that when an SDK path is specified on the command-line (via the `--sdk`
27 * argument) that the specified SDK is used. 29 * argument) that the specified SDK is used.
28 */ 30 */
29 @reflectiveTest 31 @reflectiveTest
30 class AnalysisDomainGetErrorsTest 32 class AnalysisDomainGetErrorsTest
31 extends AbstractAnalysisServerIntegrationTest { 33 extends AbstractAnalysisServerIntegrationTest {
32 AnalysisDomainGetErrorsTest(); 34 AnalysisDomainGetErrorsTest();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 import 'dart:fake'; 92 import 'dart:fake';
91 '''; 93 ''';
92 writeFile(pathname, text); 94 writeFile(pathname, text);
93 standardAnalysisSetup(); 95 standardAnalysisSetup();
94 await analysisFinished; 96 await analysisFinished;
95 List<AnalysisError> errors = currentAnalysisErrors[pathname]; 97 List<AnalysisError> errors = currentAnalysisErrors[pathname];
96 expect(errors, hasLength(1)); 98 expect(errors, hasLength(1));
97 expect(errors[0].code, 'unused_import'); 99 expect(errors[0].code, 'unused_import');
98 } 100 }
99 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698