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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java

Issue 610863004: Start implementing checked mode compile time errors in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java
index 7958e5b8084c564d7b5b8121ffd323a7981c9d3b..3eecefd0e6b500594ed9a9d57942604a7cd0d2bf 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/context/AnalysisContextImplTest.java
@@ -1315,11 +1315,13 @@ public class AnalysisContextImplTest extends EngineTestCase {
options.setCacheSize(42);
options.setDart2jsHint(false);
options.setHint(false);
+ options.setEnableTypeChecks(true);
context.setAnalysisOptions(options);
AnalysisOptions result = context.getAnalysisOptions();
assertEquals(options.getCacheSize(), result.getCacheSize());
assertEquals(options.getDart2jsHint(), result.getDart2jsHint());
assertEquals(options.getHint(), result.getHint());
+ assertEquals(options.getEnableTypeChecks(), result.getEnableTypeChecks());
}
public void test_setAnalysisOptions_reduceAnalysisPriorityOrder() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698