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

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

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analysis_server/test/protocol_server_test.dart ('k') | pkg/analysis_server/test/reflective_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/protocol_test.dart
diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
index 61d9855dc3574a6e7aed10d106d7f8c29f634e4d..77ffad96659f0b4998136c83f7b40668126cc57b 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -8,9 +8,10 @@ import 'dart:convert';
import 'package:analysis_server/src/constants.dart';
import 'package:analysis_server/src/protocol.dart';
-import 'reflective_tests.dart';
import 'package:unittest/unittest.dart';
+import 'reflective_tests.dart';
+
Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>());
@@ -73,6 +74,15 @@ class NotificationTest {
}));
}
+ void test_toJson_noParams() {
+ Notification notification = new Notification('foo');
+ expect(notification.event, equals('foo'));
+ expect(notification.toJson().keys, isNot(contains('params')));
+ expect(notification.toJson(), equals({
+ 'event': 'foo'
+ }));
+ }
+
void test_toJson_withParams() {
Notification notification = new Notification('foo', {
'x': 'y'
@@ -88,15 +98,6 @@ class NotificationTest {
}
}));
}
-
- void test_toJson_noParams() {
- Notification notification = new Notification('foo');
- expect(notification.event, equals('foo'));
- expect(notification.toJson().keys, isNot(contains('params')));
- expect(notification.toJson(), equals({
- 'event': 'foo'
- }));
- }
}
« no previous file with comments | « pkg/analysis_server/test/protocol_server_test.dart ('k') | pkg/analysis_server/test/reflective_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698