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

Unified Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1241243003: Implement a strong-mode option in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/analyzer/lib/src/generated/engine.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/engine_test.dart
diff --git a/pkg/analyzer/test/generated/engine_test.dart b/pkg/analyzer/test/generated/engine_test.dart
index ad68a206357ef8f2ce8b7ff5d72b1bae4458cc18..af6dac39cd6610c49a6244fcb68f69fe43fd1378 100644
--- a/pkg/analyzer/test/generated/engine_test.dart
+++ b/pkg/analyzer/test/generated/engine_test.dart
@@ -2268,6 +2268,7 @@ class AnalysisOptionsImplTest extends EngineTestCase {
options.hint = booleanValue;
options.incremental = booleanValue;
options.preserveComments = booleanValue;
+ options.strongMode = booleanValue;
AnalysisOptionsImpl copy = new AnalysisOptionsImpl.from(options);
expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies);
expect(copy.cacheSize, options.cacheSize);
@@ -2278,6 +2279,7 @@ class AnalysisOptionsImplTest extends EngineTestCase {
expect(copy.hint, options.hint);
expect(copy.incremental, options.incremental);
expect(copy.preserveComments, options.preserveComments);
+ expect(copy.strongMode, options.strongMode);
}
}
@@ -2303,6 +2305,13 @@ class AnalysisOptionsImplTest extends EngineTestCase {
expect(options.dart2jsHint, value);
}
+ void test_strongMode() {
+ AnalysisOptionsImpl options = new AnalysisOptionsImpl();
+ bool value = !options.strongMode;
+ options.strongMode = value;
+ expect(options.strongMode, value);
+ }
+
void test_generateImplicitErrors() {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
bool value = !options.generateImplicitErrors;
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698