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

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

Issue 486003003: Start using code-generated protocol classes in analysis server. (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
« no previous file with comments | « pkg/analysis_server/test/domain_server_test.dart ('k') | no next file » | 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 db039da2ca5d05f0cd5617f2ac0ddbe6fd3aa718..855fed99bbb57b7c68811bcb0300fad71d850443 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -509,30 +509,7 @@ class RequestTest {
Request request = new Request.fromString(json);
expect(request.id, equals('one'));
expect(request.method, equals('aMethod'));
- expect(request.getParameter('foo', null).asString(), equals('bar'));
- }
-
- void test_getParameter_defined() {
- String name = 'name';
- String value = 'value';
- Request request = new Request('0', '');
- request.setParameter(name, value);
- expect(request.getParameter(name, null).datum, equals(value));
- }
-
- void test_getParameter_null() {
- String name = 'name';
- Request request = new Request('0', '');
- request.setParameter(name, null);
- expect(request.getParameter(name, 'default').datum, equals(null));
- }
-
- void test_getParameter_undefined() {
- String name = 'name';
- String defaultValue = 'default value';
- Request request = new Request('0', '');
- expect(request.getParameter(name, defaultValue).datum, equals(
- defaultValue));
+ expect(request.params, equals({'foo': 'bar'}));
}
void test_getRequiredParameter_defined() {
« no previous file with comments | « pkg/analysis_server/test/domain_server_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698