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

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

Issue 2700563003: Add tests for edit.sortMembers and edit.organizeDirectives. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « pkg/analysis_server/test/integration/edit/test_all.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library test.integration.analysis; 5 library test.integration.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 /** 287 /**
288 * An error result from a server request. 288 * An error result from a server request.
289 */ 289 */
290 class ServerErrorMessage { 290 class ServerErrorMessage {
291 final Map message; 291 final Map message;
292 292
293 ServerErrorMessage(this.message); 293 ServerErrorMessage(this.message);
294 294
295 dynamic get error => message['error']; 295 dynamic get error => message['error'];
296
297 String toString() => message.toString();
296 } 298 }
297 299
298 /** 300 /**
299 * Wrapper class for Matcher which doesn't create the underlying Matcher object 301 * Wrapper class for Matcher which doesn't create the underlying Matcher object
300 * until it is needed. This is necessary in order to create matchers that can 302 * until it is needed. This is necessary in order to create matchers that can
301 * refer to themselves (so that recursive data structures can be represented). 303 * refer to themselves (so that recursive data structures can be represented).
302 */ 304 */
303 class LazyMatcher implements Matcher { 305 class LazyMatcher implements Matcher {
304 /** 306 /**
305 * Callback that will be used to create the matcher the first time it is 307 * Callback that will be used to create the matcher the first time it is
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 void populateMismatches(item, List<MismatchDescriber> mismatches); 984 void populateMismatches(item, List<MismatchDescriber> mismatches);
983 985
984 /** 986 /**
985 * Create a [MismatchDescriber] describing a mismatch with a simple string. 987 * Create a [MismatchDescriber] describing a mismatch with a simple string.
986 */ 988 */
987 MismatchDescriber simpleDescription(String description) => 989 MismatchDescriber simpleDescription(String description) =>
988 (Description mismatchDescription) { 990 (Description mismatchDescription) {
989 mismatchDescription.add(description); 991 mismatchDescription.add(description);
990 }; 992 };
991 } 993 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/edit/test_all.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698