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

Side by Side Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 456613004: Integration test search.getTypeHierarchy and make some minor fixes. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/spec/generate_files". 7 // "pkg/analysis_server/spec/generate_files".
8 8
9 /** 9 /**
10 * Convenience methods for running integration tests 10 * Convenience methods for running integration tests
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 * 586 *
587 * The file containing the declaration or reference to the type for which a 587 * The file containing the declaration or reference to the type for which a
588 * hierarchy is being requested. 588 * hierarchy is being requested.
589 * 589 *
590 * offset ( int ) 590 * offset ( int )
591 * 591 *
592 * The offset of the name of the type within the file. 592 * The offset of the name of the type within the file.
593 * 593 *
594 * Returns 594 * Returns
595 * 595 *
596 * hierarchyItems ( List<TypeHierarchyItem> ) 596 * hierarchyItems ( optional List<TypeHierarchyItem> )
597 * 597 *
598 * A list of the types in the requested hierarchy. The first element of the 598 * A list of the types in the requested hierarchy. The first element of the
599 * list is the item representing the type for which the hierarchy was 599 * list is the item representing the type for which the hierarchy was
600 * requested. The index of other elements of the list is unspecified, but 600 * requested. The index of other elements of the list is unspecified, but
601 * correspond to the integers used to reference supertype and subtype items 601 * correspond to the integers used to reference supertype and subtype items
602 * within the items. 602 * within the items.
603 *
604 * This field will be absent if the code at the given file and offset does
605 * not represent a type, or if the file has not been sufficiently analyzed
606 * to allow a type hierarchy to be produced.
603 */ 607 */
604 Future sendSearchGetTypeHierarchy(String file, int offset, {bool checkTypes: t rue}) { 608 Future sendSearchGetTypeHierarchy(String file, int offset, {bool checkTypes: t rue}) {
605 Map<String, dynamic> params = {}; 609 Map<String, dynamic> params = {};
606 params["file"] = file; 610 params["file"] = file;
607 params["offset"] = offset; 611 params["offset"] = offset;
608 if (checkTypes) { 612 if (checkTypes) {
609 expect(params, isSearchGetTypeHierarchyParams); 613 expect(params, isSearchGetTypeHierarchyParams);
610 } 614 }
611 return server.send("search.getTypeHierarchy", params) 615 return server.send("search.getTypeHierarchy", params)
612 .then((result) { 616 .then((result) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 } 958 }
955 return server.send("debug.setSubscriptions", params) 959 return server.send("debug.setSubscriptions", params)
956 .then((result) { 960 .then((result) {
957 if (checkTypes) { 961 if (checkTypes) {
958 expect(result, isDebugSetSubscriptionsResult); 962 expect(result, isDebugSetSubscriptionsResult);
959 } 963 }
960 return result; 964 return result;
961 }); 965 });
962 } 966 }
963 } 967 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698