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

Unified Diff: pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart

Issue 621383002: Change integration test send...() methods to use structured objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reintroduce type checking of server responses 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
Index: pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart
diff --git a/pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart b/pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart
index 24540f77a4baf3f9ea2ddb7f7e8a8e5f86661b2e..3ec72cdb50afa8de86db1a7a5330cb6a98a937f0 100644
--- a/pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart
+++ b/pkg/analysis_server/test/integration/search/get_type_hierarchy_test.dart
@@ -6,9 +6,10 @@ library test.integration.search.domain;
import 'dart:async';
-import '../../reflective_tests.dart';
+import 'package:analysis_server/src/protocol.dart';
import 'package:unittest/unittest.dart';
+import '../../reflective_tests.dart';
import '../integration_tests.dart';
/**
@@ -263,10 +264,7 @@ main /* target */ () {
Future<HierarchyResults> typeHierarchyTest(String text) {
int offset = text.indexOf(' /* target */') - 1;
sendAnalysisUpdateContent({
- pathname: {
- 'type': 'add',
- 'content': text
- }
+ pathname: new AddContentOverlay(text)
});
return analysisFinished.then((_) => sendSearchGetTypeHierarchy(pathname,
offset)).then((result) {

Powered by Google App Engine
This is Rietveld 408576698