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

Side by Side Diff: pkg/analyzer_cli/test/sdk_ext_test.dart

Issue 2395183002: Switch analyzer_cli to '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
« no previous file with comments | « pkg/analyzer_cli/test/reporter_test.dart ('k') | pkg/analyzer_cli/test/strong_mode_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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Test that sdk extensions are properly detected in various scenarios. 5 /// Test that sdk extensions are properly detected in various scenarios.
6 library analyzer_cli.test.sdk_ext; 6 library analyzer_cli.test.sdk_ext;
7 7
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:analyzer/src/dart/sdk/sdk.dart'; 10 import 'package:analyzer/src/dart/sdk/sdk.dart';
11 import 'package:analyzer/src/generated/sdk.dart'; 11 import 'package:analyzer/src/generated/sdk.dart';
12 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; 12 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink;
13 import 'package:analyzer_cli/src/options.dart'; 13 import 'package:analyzer_cli/src/options.dart';
14 import 'package:path/path.dart' as path; 14 import 'package:path/path.dart' as path;
15 import 'package:unittest/unittest.dart'; 15 import 'package:test/test.dart';
16 16
17 import 'utils.dart'; 17 import 'utils.dart';
18 18
19 main() { 19 main() {
20 group('Sdk extensions', () { 20 group('Sdk extensions', () {
21 StringSink savedOutSink, savedErrorSink; 21 StringSink savedOutSink, savedErrorSink;
22 int savedExitCode; 22 int savedExitCode;
23 ExitHandler savedExitHandler; 23 ExitHandler savedExitHandler;
24 24
25 setUp(() { 25 setUp(() {
(...skipping 22 matching lines...) Expand all
48 ]); 48 ]);
49 49
50 DartSdk sdk = driver.sdk; 50 DartSdk sdk = driver.sdk;
51 expect(sdk, new isInstanceOf<FolderBasedDartSdk>()); 51 expect(sdk, new isInstanceOf<FolderBasedDartSdk>());
52 expect((sdk as FolderBasedDartSdk).useSummary, isFalse); 52 expect((sdk as FolderBasedDartSdk).useSummary, isFalse);
53 53
54 expect(exitCode, 0); 54 expect(exitCode, 0);
55 }); 55 });
56 }); 56 });
57 } 57 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/reporter_test.dart ('k') | pkg/analyzer_cli/test/strong_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698