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

Unified Diff: pkg/analyzer_cli/test/driver_test.dart

Issue 2809793004: CLI support for `enableAssertInitializer`s. (Closed)
Patch Set: options fix Created 3 years, 8 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
Index: pkg/analyzer_cli/test/driver_test.dart
diff --git a/pkg/analyzer_cli/test/driver_test.dart b/pkg/analyzer_cli/test/driver_test.dart
index 81eb70c5e1a0795277a4869d85a83b79751a1d3e..a9884623084d33d0a538d45f11874e5a4e34e571 100644
--- a/pkg/analyzer_cli/test/driver_test.dart
+++ b/pkg/analyzer_cli/test/driver_test.dart
@@ -89,6 +89,12 @@ main() {
expect(exitCode, 3);
});
+ test('not parse enableAssertInitializer', () async {
+ await drive('data/file_with_assert_initializers.dart',
+ args: ['--enable-assert-initializers']);
+ expect(exitCode, 0);
+ });
+
test('missing options file', () async {
await drive('data/test_file.dart', options: 'data/NO_OPTIONS_HERE');
expect(exitCode, 3);
« no previous file with comments | « pkg/analyzer_cli/test/data/file_with_assert_initializers.dart ('k') | pkg/analyzer_cli/test/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698