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

Unified Diff: pkg/dev_compiler/test/options/options_test.dart

Issue 2955513002: Dynamically load packages for dartdevc tests in test.dart. (Closed)
Patch Set: Remove TODO that's TODONE. Created 3 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 | « pkg/dev_compiler/lib/src/compiler/compiler.dart ('k') | pkg/dev_compiler/tool/build_pkgs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/options/options_test.dart
diff --git a/pkg/dev_compiler/test/options/options_test.dart b/pkg/dev_compiler/test/options/options_test.dart
index 5fff692a8a1ed697b45147cf77b24a7f586dfd25..a87034d5969ed10954919af0e3682bb056e458b2 100644
--- a/pkg/dev_compiler/test/options/options_test.dart
+++ b/pkg/dev_compiler/test/options/options_test.dart
@@ -79,4 +79,21 @@ main() {
var analysisOptions = compiler.context.analysisOptions;
expect(analysisOptions.enableStrictCallChecks, isTrue);
});
+
+ test('custom module name for summary', () {
+ var args = <String>[
+ '-snormal',
+ '-scustom/path:module',
+ '-sanother',
+ '-scustom/path2:module2'
+ ];
+
+ var argResults = ddcArgParser().parse(args);
+ var options = new AnalyzerOptions.fromArguments(argResults);
+ expect(options.summaryPaths,
+ orderedEquals(['normal', 'custom/path', 'another', 'custom/path2']));
+ expect(options.customSummaryModules['custom/path'], equals('module'));
+ expect(options.customSummaryModules['custom/path2'], equals('module2'));
+ expect(options.customSummaryModules.containsKey('normal'), isFalse);
+ });
}
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/compiler.dart ('k') | pkg/dev_compiler/tool/build_pkgs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698