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

Unified Diff: tests/compiler/dart2js/exit_code_test.dart

Issue 1162363004: Support Package Resolution Configuration files. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/bad_output_io_test.dart ('k') | tests/compiler/dart2js/expect_annotations_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/exit_code_test.dart
diff --git a/tests/compiler/dart2js/exit_code_test.dart b/tests/compiler/dart2js/exit_code_test.dart
index 82473cb81cc03eb25c989dac6304402984196cba..f69a271fabf05e9a03cf24e83c874897df81997b 100644
--- a/tests/compiler/dart2js/exit_code_test.dart
+++ b/tests/compiler/dart2js/exit_code_test.dart
@@ -34,11 +34,13 @@ class TestCompiler extends apiimpl.Compiler {
Uri packageRoot,
List<String> options,
Map<String, dynamic> environment,
+ Uri packageConfig,
+ api.PackagesDiscoveryProvider findPackages,
String this.testMarker,
String this.testType,
Function this.onTest)
: super(inputProvider, outputProvider, handler, libraryRoot,
- packageRoot, options, environment) {
+ packageRoot, options, environment, packageConfig, findPackages) {
scanner = new TestScanner(this);
resolver = new TestResolver(this, backend.constantCompilerTask);
test('Compiler');
@@ -156,7 +158,9 @@ Future testExitCode(
api.DiagnosticHandler handler,
[List<String> options = const [],
api.CompilerOutputProvider outputProvider,
- Map<String, dynamic> environment = const {}]) {
+ Map<String, dynamic> environment = const {},
+ Uri packageConfig,
+ api.PackagesDiscoveryProvider findPackages]) {
libraryRoot = Platform.script.resolve('../../../sdk/');
outputProvider = NullSink.outputProvider;
// Use this to silence the test when debugging:
@@ -168,6 +172,8 @@ Future testExitCode(
packageRoot,
options,
environment,
+ packageConfig,
+ findPackages,
marker,
type,
onTest);
« no previous file with comments | « tests/compiler/dart2js/bad_output_io_test.dart ('k') | tests/compiler/dart2js/expect_annotations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698