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

Unified Diff: pkg/analysis_server/test/integration/analysis/error_test.dart

Issue 631553002: Change integration test notifications to use structured objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/integration/analysis/error_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/error_test.dart b/pkg/analysis_server/test/integration/analysis/error_test.dart
index d391781d9d46a24ef3ff5bbe3f55922179e7f1aa..bb7078daefcabb9f1847754981df0706fc4c0fff 100644
--- a/pkg/analysis_server/test/integration/analysis/error_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/error_test.dart
@@ -4,11 +4,11 @@
library test.integration.analysis.error;
-import '../../reflective_tests.dart';
+import 'package:analysis_server/src/protocol.dart';
import 'package:unittest/unittest.dart';
+import '../../reflective_tests.dart';
import '../integration_tests.dart';
-import '../protocol_matchers.dart';
@ReflectiveTestCase()
class AnalysisErrorIntegrationTest extends AbstractAnalysisServerIntegrationTest
@@ -23,10 +23,9 @@ main() {
standardAnalysisSetup();
return analysisFinished.then((_) {
expect(currentAnalysisErrors[pathname], isList);
- List errors = currentAnalysisErrors[pathname];
+ List<AnalysisError> errors = currentAnalysisErrors[pathname];
expect(errors, hasLength(1));
- expect(errors[0], isAnalysisError);
- expect(errors[0]['location']['file'], equals(pathname));
+ expect(errors[0].location.file, equals(pathname));
});
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698