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

Unified Diff: editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java

Issue 1063613002: Add an analysis server option to enable null-aware-operator support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Roll the analysis server JSON API version. Created 5 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: editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
index 7cf52ba017561df062344d40e4d31bd7ae05c3fa..81caafa088d23f1a4832ca01e9154d22abcec370 100644
--- a/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
+++ b/editor/tools/plugins/com.google.dart.server_test/src/com/google/dart/server/internal/remote/RemoteAnalysisServerImplTest.java
@@ -1218,7 +1218,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_all_false() throws Exception {
- AnalysisOptions options = new AnalysisOptions(false, false, false, false, false, false);
+ AnalysisOptions options = new AnalysisOptions(false, false, false, false, false, false, false);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1230,6 +1230,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
" 'enableAsync': false,",
" 'enableDeferredLoading': false,",
" 'enableEnums': false,",
+ " 'enableNullAwareOperators': false,",
" 'generateDart2jsHints': false,",
" 'generateHints': false,",
" 'generateLints': false",
@@ -1240,7 +1241,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_all_true() throws Exception {
- AnalysisOptions options = new AnalysisOptions(true, true, true, true, true, true);
+ AnalysisOptions options = new AnalysisOptions(true, true, true, true, true, true, true);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1252,6 +1253,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
" 'enableAsync': true,",
" 'enableDeferredLoading': true,",
" 'enableEnums': true,",
+ " 'enableNullAwareOperators': true,",
" 'generateDart2jsHints': true,",
" 'generateHints': true,",
" 'generateLints': true",
@@ -1262,7 +1264,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_subset1() throws Exception {
- AnalysisOptions options = new AnalysisOptions(true, null, null, null, null, null);
+ AnalysisOptions options = new AnalysisOptions(true, null, null, null, null, null, null);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//
@@ -1279,7 +1281,7 @@ public class RemoteAnalysisServerImplTest extends AbstractRemoteServerTest {
}
public void test_analysis_updateOptions_subset2() throws Exception {
- AnalysisOptions options = new AnalysisOptions(false, true, null, null, null, null);
+ AnalysisOptions options = new AnalysisOptions(false, true, null, null, null, null, null);
server.analysis_updateOptions(options);
List<JsonObject> requests = requestSink.getRequests();
JsonElement expected = parseJson(//

Powered by Google App Engine
This is Rietveld 408576698