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

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

Issue 479683005: Make more use of generated code 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
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 b64212ac09f1d1f99fa3b963066c809fe8388ce9..1590e759acd642d544341f0d3e01497930c32cd1 100644
--- a/pkg/analysis_server/test/computer/error_test.dart
+++ b/pkg/analysis_server/test/computer/error_test.dart
@@ -104,36 +104,6 @@ class AnalysisErrorTest {
});
}
- void test_fromJson() {
- var json = {
- SEVERITY: 'ERROR',
- TYPE: 'SYNTACTIC_ERROR',
- LOCATION: {
- FILE: '/test.dart',
- OFFSET: 19,
- LENGTH: 1,
- START_LINE: 2,
- START_COLUMN: 11
- },
- MESSAGE: 'Expected to find \';\'',
- CORRECTION: 'my correction'
- };
- AnalysisError error =
- new AnalysisError.fromJson(new ResponseDecoder(), 'json', json);
- {
- Location location = error.location;
- expect(location.file, '/test.dart');
- expect(location.offset, 19);
- expect(location.length, 1);
- expect(location.startLine, 2);
- expect(location.startColumn, 11);
- }
- expect(error.message, "Expected to find ';'");
- expect(error.severity, ErrorSeverity.ERROR);
- expect(error.type, ErrorType.SYNTACTIC_ERROR);
- expect(error.correction, "my correction");
- }
-
void test_engineErrorsToJson() {
var json = engineErrorsToJson(lineInfo, [engineError]);
expect(json, unorderedEquals([{

Powered by Google App Engine
This is Rietveld 408576698