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

Unified Diff: tests/compiler/dart2js/analyze_test_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 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
Index: tests/compiler/dart2js/analyze_test_test.dart
diff --git a/tests/compiler/dart2js/analyze_test_test.dart b/tests/compiler/dart2js/analyze_test_test.dart
index c398f005221dc3117ec23caad24814a7962101b2..caa69cdaf84c90acd65528b006f8d107f3e46766 100644
--- a/tests/compiler/dart2js/analyze_test_test.dart
+++ b/tests/compiler/dart2js/analyze_test_test.dart
@@ -7,13 +7,10 @@ library dart2js.analyze_test.test;
import 'dart:io';
import 'package:async_helper/async_helper.dart';
-import 'package:compiler/src/apiimpl.dart' show
- CompilerImpl;
+import 'package:compiler/src/apiimpl.dart' show CompilerImpl;
import 'package:compiler/src/commandline_options.dart';
-import 'package:compiler/src/diagnostics/messages.dart' show
- MessageKind;
-import 'package:compiler/src/filenames.dart' show
- nativeToUriPath;
+import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
+import 'package:compiler/src/filenames.dart' show nativeToUriPath;
import 'analyze_helper.dart';
import 'memory_compiler.dart';
@@ -25,13 +22,13 @@ import 'memory_compiler.dart';
* the error/warning message in the list of white-listings for each file.
*/
// TODO(johnniwinther): Support canonical URIs as keys.
-const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const {
+const Map<String, List/*<String|MessageKind>*/ > WHITE_LIST = const {
"/test/lib/src/util/": const [
- "Library 'package:async/async.dart' doesn't export a "
- "'ForkableStream' declaration.",
+ "Library 'package:async/async.dart' doesn't export a "
+ "'ForkableStream' declaration.",
],
"/utils.dart": const [
- "Duplicated library name 'utils'.",
+ "Duplicated library name 'utils'.",
],
};
@@ -82,8 +79,8 @@ main(List<String> arguments) {
if (line.startsWith('Analyzing uri: ')) {
int filenameOffset = line.indexOf('tests/compiler/dart2js/');
if (filenameOffset != -1) {
- uriList.add(Uri.base.resolve(
- nativeToUriPath(line.substring(filenameOffset))));
+ uriList.add(Uri.base
+ .resolve(nativeToUriPath(line.substring(filenameOffset))));
}
}
}
@@ -101,10 +98,7 @@ main(List<String> arguments) {
if (uriList.isEmpty) {
uriList = computeInputUris(filter: filter);
}
- await analyze(
- uriList,
- WHITE_LIST,
- mode: AnalysisMode.URI,
- options: options);
+ await analyze(uriList, WHITE_LIST,
+ mode: AnalysisMode.URI, options: options);
});
}
« no previous file with comments | « tests/compiler/dart2js/analyze_only_test.dart ('k') | tests/compiler/dart2js/analyze_unused_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698