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

Unified Diff: pkg/analysis_server/test/analysis/get_errors_test.dart

Issue 513853002: In the analysis server API, change RequestError.code to an enum. (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/analysis/get_errors_test.dart
diff --git a/pkg/analysis_server/test/analysis/get_errors_test.dart b/pkg/analysis_server/test/analysis/get_errors_test.dart
index cc9224c883a99444e607a6e2cc66ae32d40f6e0c..a3da0b3df6bea5ff9524081423ef7fd1e7d773fe 100644
--- a/pkg/analysis_server/test/analysis/get_errors_test.dart
+++ b/pkg/analysis_server/test/analysis/get_errors_test.dart
@@ -113,7 +113,7 @@ main() {
expect(result.errors, isEmpty);
RequestError error = response.error;
expect(error, isNotNull);
- expect(error.code, 'GET_ERRORS_ERROR');
+ expect(error.code, RequestErrorCode.GET_ERRORS_ERROR);
});
}

Powered by Google App Engine
This is Rietveld 408576698