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

Unified Diff: tests/compiler/dart2js/duplicate_library_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
« no previous file with comments | « tests/compiler/dart2js/dump_info_test.dart ('k') | tests/compiler/dart2js/elide_callthrough_stub_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/duplicate_library_test.dart
diff --git a/tests/compiler/dart2js/duplicate_library_test.dart b/tests/compiler/dart2js/duplicate_library_test.dart
index 5a2a708f4e77b20432c1e1cbb767edd9cb629a08..57800dc709aff90b1cea8780834c5c224e6fa829 100644
--- a/tests/compiler/dart2js/duplicate_library_test.dart
+++ b/tests/compiler/dart2js/duplicate_library_test.dart
@@ -12,9 +12,8 @@ import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
import 'memory_compiler.dart';
-void check(String kind,
- Iterable<CollectedMessage> messages,
- List<MessageKind> expectedMessageKinds) {
+void check(String kind, Iterable<CollectedMessage> messages,
+ List<MessageKind> expectedMessageKinds) {
Expect.equals(messages.length, expectedMessageKinds.length,
"Unexpected $kind count: $messages");
int i = 0;
@@ -24,8 +23,8 @@ void check(String kind,
}
Future test(Map<String, String> source,
- {List<MessageKind> warnings: const <MessageKind>[],
- List<MessageKind> hints: const <MessageKind>[]}) async {
+ {List<MessageKind> warnings: const <MessageKind>[],
+ List<MessageKind> hints: const <MessageKind>[]}) async {
DiagnosticCollector collector = new DiagnosticCollector();
await runCompiler(
memorySourceFiles: source,
@@ -54,8 +53,10 @@ import 'pkg/lib/foo.dart';
""",
'pkg/lib/foo.dart': """
library lib.foo;
-"""},
- warnings: [MessageKind.DUPLICATED_LIBRARY_RESOURCE]);
+"""
+ }, warnings: [
+ MessageKind.DUPLICATED_LIBRARY_RESOURCE
+ ]);
await test({
'main.dart': """
@@ -71,8 +72,10 @@ import 'lib/bar.dart';
""",
'pkg/lib/bar.dart': """
library lib.bar;
-"""},
- warnings: [MessageKind.DUPLICATED_LIBRARY_RESOURCE]);
+"""
+ }, warnings: [
+ MessageKind.DUPLICATED_LIBRARY_RESOURCE
+ ]);
await test({
'main.dart': """
@@ -88,8 +91,10 @@ import 'package:lib/baz.dart';
""",
'pkg/lib/baz.dart': """
library lib.baz;
-"""},
- warnings: [MessageKind.DUPLICATED_LIBRARY_RESOURCE]);
+"""
+ }, warnings: [
+ MessageKind.DUPLICATED_LIBRARY_RESOURCE
+ ]);
await test({
'main.dart': """
@@ -110,8 +115,10 @@ import 'lib/boz.dart';
""",
'pkg/lib/boz.dart': """
library lib.boz;
-"""},
- warnings: [MessageKind.DUPLICATED_LIBRARY_RESOURCE]);
+"""
+ }, warnings: [
+ MessageKind.DUPLICATED_LIBRARY_RESOURCE
+ ]);
await test({
'main.dart': """
@@ -122,8 +129,10 @@ import 'pkg/lib/qux.dart';
""",
'pkg/lib/qux.dart': """
// No library tag.
-"""},
- hints: [MessageKind.DUPLICATED_RESOURCE]);
+"""
+ }, hints: [
+ MessageKind.DUPLICATED_RESOURCE
+ ]);
await test({
'main.dart': """
@@ -137,8 +146,9 @@ library lib;
""",
'bar.dart': """
library lib;
-"""},
- warnings: [MessageKind.DUPLICATED_LIBRARY_NAME,
- MessageKind.DUPLICATED_LIBRARY_NAME]);
+"""
+ }, warnings: [
+ MessageKind.DUPLICATED_LIBRARY_NAME,
+ MessageKind.DUPLICATED_LIBRARY_NAME
+ ]);
}
-
« no previous file with comments | « tests/compiler/dart2js/dump_info_test.dart ('k') | tests/compiler/dart2js/elide_callthrough_stub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698