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

Unified Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 483613006: Allow null as a synonym for {} when decoding JSON objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/analysis_server/test/domain_analysis_test.dart
diff --git a/pkg/analysis_server/test/domain_analysis_test.dart b/pkg/analysis_server/test/domain_analysis_test.dart
index c57182633d8680ca596cb077ed68ffbcb447a04b..e38ec71655f79e7dbe2939a06d69fbc4bc568d99 100644
--- a/pkg/analysis_server/test/domain_analysis_test.dart
+++ b/pkg/analysis_server/test/domain_analysis_test.dart
@@ -141,6 +141,13 @@ main() {
expect(response, isResponseSuccess('0'));
});
+ test('null', () {
+ // null is allowed as a synonym for {}.
+ var request = new Request('0', ANALYSIS_UPDATE_OPTIONS, {OPTIONS: null});
+ var response = handler.handleRequest(request);
+ expect(response, isResponseSuccess('0'));
+ });
+
// TODO(paulberry): disabled because analyzeAngular is currently not in the API.
// test('valid', () {
// engine.AnalysisOptions oldOptions = server.contextDirectoryManager.defaultOptions;
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/tool/spec/codegen_dart_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698