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

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

Issue 332993006: Implemented analysis.setPrioritySource (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/protocol_test.dart
diff --git a/pkg/analysis_server/test/protocol_test.dart b/pkg/analysis_server/test/protocol_test.dart
index 293bdd274d1bb631f17e4e16792cdf6e732faf44..36bf1a2df5d2757cb7a9bbde8150b82379914c96 100644
--- a/pkg/analysis_server/test/protocol_test.dart
+++ b/pkg/analysis_server/test/protocol_test.dart
@@ -528,6 +528,17 @@ class ResponseTest {
}
@runTest
+ static void create_unanalyzedPriorityFiles() {
+ Response response = new Response.unanalyzedPriorityFiles(new Request('0', ''), 'file list');
+ expect(response.id, equals('0'));
+ expect(response.error, isNotNull);
+ expect(response.toJson(), equals({
+ Response.ID: '0',
+ Response.ERROR: {'code': -11, 'message': "Unanalyzed files cannot be a priority: 'file list'"}
+ }));
+ }
+
+ @runTest
static void setResult() {
String resultName = 'name';
String resultValue = 'value';

Powered by Google App Engine
This is Rietveld 408576698