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

Unified Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « pkg/analysis_server/test/domain_completion_test.dart ('k') | pkg/analysis_server/test/mock_sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/integration/integration_tests.dart
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart
index 3345554ed113462cf1e153178ab850077a5e0f66..08fb56d02234d4b67b2697f29549d6e479f0dad9 100644
--- a/pkg/analysis_server/test/integration/integration_tests.dart
+++ b/pkg/analysis_server/test/integration/integration_tests.dart
@@ -349,8 +349,8 @@ class MatchesJsonObject extends _RecursiveMatcher {
if (requiredFields != null) {
requiredFields.forEach((String key, Matcher valueMatcher) {
if (!item.containsKey(key)) {
- mismatches.add(
- (Description mismatchDescription) => mismatchDescription
+ mismatches.add((Description mismatchDescription) =>
+ mismatchDescription
.add('is missing field ')
.addDescriptionOf(key)
.add(' (')
@@ -381,7 +381,10 @@ class MatchesJsonObject extends _RecursiveMatcher {
*/
void _checkField(String key, value, Matcher valueMatcher,
List<MismatchDescriber> mismatches) {
- checkSubstructure(value, valueMatcher, mismatches,
+ checkSubstructure(
+ value,
+ valueMatcher,
+ mismatches,
(Description description) =>
description.add('field ').addDescriptionOf(key));
}
@@ -590,8 +593,11 @@ class Server {
* `true`, the server will be started with "--observe" and
* "--pause-isolates-on-exit", allowing the observatory to be used.
*/
- Future start({bool debugServer: false, int diagnosticPort,
- bool profileServer: false, bool newTaskModel: false,
+ Future start(
+ {bool debugServer: false,
+ int diagnosticPort,
+ bool profileServer: false,
+ bool newTaskModel: false,
bool useAnalysisHighlight2: false}) {
if (_process != null) {
throw new Exception('Process already started');
@@ -696,8 +702,8 @@ class _ListOf extends Matcher {
Description describeMismatch(
item, Description mismatchDescription, Map matchState, bool verbose) {
if (item is! List) {
- return super.describeMismatch(
- item, mismatchDescription, matchState, verbose);
+ return super
+ .describeMismatch(item, mismatchDescription, matchState, verbose);
} else {
return iterableMatcher.describeMismatch(
item, mismatchDescription, matchState, verbose);
@@ -744,10 +750,16 @@ class _MapOf extends _RecursiveMatcher {
return;
}
item.forEach((key, value) {
- checkSubstructure(key, keyMatcher, mismatches,
+ checkSubstructure(
+ key,
+ keyMatcher,
+ mismatches,
(Description description) =>
description.add('key ').addDescriptionOf(key));
- checkSubstructure(value, valueMatcher, mismatches,
+ checkSubstructure(
+ value,
+ valueMatcher,
+ mismatches,
(Description description) =>
description.add('field ').addDescriptionOf(key));
});
@@ -850,8 +862,8 @@ abstract class _RecursiveMatcher extends Matcher {
}
return mismatchDescription;
} else {
- return super.describeMismatch(
- item, mismatchDescription, matchState, verbose);
+ return super
+ .describeMismatch(item, mismatchDescription, matchState, verbose);
}
}
@@ -878,6 +890,6 @@ abstract class _RecursiveMatcher extends Matcher {
*/
MismatchDescriber simpleDescription(String description) =>
(Description mismatchDescription) {
- mismatchDescription.add(description);
- };
+ mismatchDescription.add(description);
+ };
}
« no previous file with comments | « pkg/analysis_server/test/domain_completion_test.dart ('k') | pkg/analysis_server/test/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698