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

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

Issue 1101003002: Use package:test_reflective_loader instead of reflective_tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« 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 3148cdf590e7280c4ac8ccd8e27b1c6055b99ed5..ddd1b35b233399867626b367d0ddc75d51724c0d 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -8,20 +8,19 @@ import 'dart:convert';
import 'package:analysis_server/src/constants.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:unittest/unittest.dart';
-import 'reflective_tests.dart';
-
-Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>());
-
main() {
groupSep = ' | ';
- runReflectiveTests(NotificationTest);
- runReflectiveTests(RequestTest);
- runReflectiveTests(RequestErrorTest);
- runReflectiveTests(ResponseTest);
+ defineReflectiveTests(NotificationTest);
+ defineReflectiveTests(RequestTest);
+ defineReflectiveTests(RequestErrorTest);
+ defineReflectiveTests(ResponseTest);
}
+Matcher _throwsRequestFailure = throwsA(new isInstanceOf<RequestFailure>());
+
@reflectiveTest
class InvalidParameterResponseMatcher extends Matcher {
static const String ERROR_CODE = 'INVALID_PARAMETER';
@@ -110,8 +109,11 @@ class RequestErrorTest {
var trace = 'a stack trace\r\nbar';
RequestError error = new RequestError(
RequestErrorCode.UNKNOWN_REQUEST, 'msg', stackTrace: trace);
- expect(error.toJson(),
- {CODE: 'UNKNOWN_REQUEST', MESSAGE: 'msg', STACK_TRACE: trace});
+ expect(error.toJson(), {
+ CODE: 'UNKNOWN_REQUEST',
+ MESSAGE: 'msg',
+ STACK_TRACE: trace
+ });
}
}
« 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