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

Unified Diff: tests/compiler/dart2js/missing_file_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/missing_file_test.dart
diff --git a/tests/compiler/dart2js/missing_file_test.dart b/tests/compiler/dart2js/missing_file_test.dart
index 457a4f03f232f7bdf1dc915f117bc9e22a68e70a..96ccf0335fe7ac59cdaaded23484aa65313a125a 100644
--- a/tests/compiler/dart2js/missing_file_test.dart
+++ b/tests/compiler/dart2js/missing_file_test.dart
@@ -17,21 +17,17 @@ const MEMORY_SOURCE_FILES = const {
import 'foo.dart';
main() {}
''',
-
-'bar.dart': '''
+ 'bar.dart': '''
import 'dart:foo';
main() {}
''',
-
-'baz.dart': '''
+ 'baz.dart': '''
import 'dart:io';
main() {}
''',
};
-Future runTest(Uri main,
- {MessageKind error,
- MessageKind info}) async {
+Future runTest(Uri main, {MessageKind error, MessageKind info}) async {
print("----\nentry-point: $main\n");
DiagnosticCollector diagnostics = new DiagnosticCollector();
@@ -57,29 +53,22 @@ Future runTest(Uri main,
void main() {
asyncTest(() async {
- await runTest(
- Uri.parse('memory:main.dart'),
+ await runTest(Uri.parse('memory:main.dart'),
error: MessageKind.READ_SCRIPT_ERROR);
- await runTest(
- Uri.parse('memory:foo.dart'),
+ await runTest(Uri.parse('memory:foo.dart'),
error: MessageKind.READ_SELF_ERROR);
- await runTest(
- Uri.parse('dart:foo'),
- error: MessageKind.LIBRARY_NOT_FOUND);
+ await runTest(Uri.parse('dart:foo'), error: MessageKind.LIBRARY_NOT_FOUND);
- await runTest(
- Uri.parse('dart:io'),
+ await runTest(Uri.parse('dart:io'),
error: MessageKind.LIBRARY_NOT_SUPPORTED,
info: MessageKind.DISALLOWED_LIBRARY_IMPORT);
- await runTest(
- Uri.parse('memory:bar.dart'),
+ await runTest(Uri.parse('memory:bar.dart'),
error: MessageKind.LIBRARY_NOT_FOUND);
- await runTest(
- Uri.parse('memory:baz.dart'),
+ await runTest(Uri.parse('memory:baz.dart'),
error: MessageKind.LIBRARY_NOT_SUPPORTED,
info: MessageKind.DISALLOWED_LIBRARY_IMPORT);
});

Powered by Google App Engine
This is Rietveld 408576698