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

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

Issue 1988603003: SDK ext test fix (add missing packages file). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « pkg/analyzer_cli/test/data/packages_file/_packages ('k') | no next file » | 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/generated/sdk_io.dart'; 10 import 'package:analyzer/src/generated/sdk_io.dart';
(...skipping 19 matching lines...) Expand all
30 outSink = new StringBuffer(); 30 outSink = new StringBuffer();
31 errorSink = new StringBuffer(); 31 errorSink = new StringBuffer();
32 }); 32 });
33 tearDown(() { 33 tearDown(() {
34 outSink = savedOutSink; 34 outSink = savedOutSink;
35 errorSink = savedErrorSink; 35 errorSink = savedErrorSink;
36 exitCode = savedExitCode; 36 exitCode = savedExitCode;
37 exitHandler = savedExitHandler; 37 exitHandler = savedExitHandler;
38 }); 38 });
39 39
40 test('.packages file present', () async { 40 test('.packages file specified', () async {
41 String testDir = path.join(testDirectory, 'data', 'packages_file'); 41 String testDir = path.join(testDirectory, 'data', 'packages_file');
42 Driver driver = new Driver() 42 Driver driver = new Driver()
43 ..start([ 43 ..start([
44 '--packages', 44 '--packages',
45 path.join(testDir, '.packages'), 45 path.join(testDir, '_packages'),
46 path.join(testDir, 'sdk_ext_user.dart') 46 path.join(testDir, 'sdk_ext_user.dart')
47 ]); 47 ]);
48 48
49 DirectoryBasedDartSdk sdk = driver.sdk; 49 DirectoryBasedDartSdk sdk = driver.sdk;
50 expect(sdk.useSummary, isFalse); 50 expect(sdk.useSummary, isFalse);
51 51
52 expect(exitCode, 0); 52 expect(exitCode, 0);
53 }); 53 });
54 }); 54 });
55 } 55 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/data/packages_file/_packages ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698