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

Unified Diff: lib/src/runner/configuration/args.dart

Issue 2040883003: Add support for passing in precompiled JS. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 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 | « lib/src/runner/configuration.dart ('k') | test/runner/configuration/configuration_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/configuration/args.dart
diff --git a/lib/src/runner/configuration/args.dart b/lib/src/runner/configuration/args.dart
index ff318e28ee6a41d1773854aebee7c3880119b605..e5c2cd271f87c346783df8278a8114149a6cdb43 100644
--- a/lib/src/runner/configuration/args.dart
+++ b/lib/src/runner/configuration/args.dart
@@ -118,6 +118,13 @@ final ArgParser _parser = (() {
help: 'The index of this test runner invocation (of --total-shards).',
hide: true);
+ // If we're running test/dir/my_test.dart, we'll look for
+ // test/dir/my_test.dart.browser_test.dart.js in the precompiled directory.
+ parser.addOption("precompiled",
+ help: 'The path to a mirror of the package directory containing '
+ 'precompiled JS.',
+ hide: true);
+
return parser;
})();
@@ -186,6 +193,7 @@ class _Parser {
packageRoot: _ifParsed('package-root'),
dart2jsPath: _ifParsed('dart2js-path'),
dart2jsArgs: _ifParsed('dart2js-args') as List<String>,
+ precompiledPath: _ifParsed('precompiled'),
reporter: _ifParsed('reporter'),
pubServePort: _parseOption('pub-serve', int.parse),
concurrency: _parseOption('concurrency', int.parse),
« no previous file with comments | « lib/src/runner/configuration.dart ('k') | test/runner/configuration/configuration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698