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

Unified Diff: pkg/analysis_server/test/computer/error_test.dart

Issue 492243002: Introduce convenience methods into generated analysis server classes. (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/computer/error_test.dart
diff --git a/pkg/analysis_server/test/computer/error_test.dart b/pkg/analysis_server/test/computer/error_test.dart
index fd4e1daf912030af3ae33f124e3f43fca7c0d07a..b64212ac09f1d1f99fa3b963066c809fe8388ce9 100644
--- a/pkg/analysis_server/test/computer/error_test.dart
+++ b/pkg/analysis_server/test/computer/error_test.dart
@@ -54,7 +54,7 @@ class AnalysisErrorTest {
void test_fromEngine_hasCorrection() {
when(engineError.correction).thenReturn('my correction');
- AnalysisError error = analysisErrorFromEngine(lineInfo, engineError);
+ AnalysisError error = new AnalysisError.fromEngine(lineInfo, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
@@ -72,7 +72,7 @@ class AnalysisErrorTest {
void test_fromEngine_noCorrection() {
when(engineError.correction).thenReturn(null);
- AnalysisError error = analysisErrorFromEngine(lineInfo, engineError);
+ AnalysisError error = new AnalysisError.fromEngine(lineInfo, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
@@ -89,7 +89,7 @@ class AnalysisErrorTest {
void test_fromEngine_noLineInfo() {
when(engineError.correction).thenReturn(null);
- AnalysisError error = analysisErrorFromEngine(null, engineError);
+ AnalysisError error = new AnalysisError.fromEngine(null, engineError);
expect(error.toJson(), {
SEVERITY: 'ERROR',
TYPE: 'COMPILE_TIME_ERROR',
« no previous file with comments | « pkg/analysis_server/test/computer/element_test.dart ('k') | pkg/analysis_server/test/edit/assists_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698