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

Unified Diff: tests/compiler/dart2js/import_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/import_mirrors_test.dart ('k') | tests/compiler/dart2js/in_user_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/import_test.dart
diff --git a/tests/compiler/dart2js/import_test.dart b/tests/compiler/dart2js/import_test.dart
index ad69add1330c3c608128061c15dd501b0d238d06..dccafe78bf585097f26bbb4b14c3b5ce04c4712f 100644
--- a/tests/compiler/dart2js/import_test.dart
+++ b/tests/compiler/dart2js/import_test.dart
@@ -28,12 +28,12 @@ main() {
int i = "";
}
''',
- 'part.dart': '''
+ 'part.dart': '''
part of lib;
main() {}
''',
- 'lib.dart': '''
+ 'lib.dart': '''
library lib;
import 'part.dart';
@@ -49,8 +49,7 @@ testEntryPointIsPart() async {
memorySourceFiles: MEMORY_SOURCE_FILES,
diagnosticHandler: collector);
- collector.checkMessages([
- const Expected.error(MessageKind.MAIN_HAS_PART_OF)]);
+ collector.checkMessages([const Expected.error(MessageKind.MAIN_HAS_PART_OF)]);
}
testImportPart() async {
@@ -61,22 +60,23 @@ testImportPart() async {
diagnosticHandler: collector);
collector.checkMessages([
- const Expected.error(MessageKind.IMPORT_PART_OF),
- const Expected.info(MessageKind.IMPORT_PART_OF_HERE)]);
+ const Expected.error(MessageKind.IMPORT_PART_OF),
+ const Expected.info(MessageKind.IMPORT_PART_OF_HERE)
+ ]);
}
testMissingImports() async {
var collector = new DiagnosticCollector();
await runCompiler(
- memorySourceFiles: MEMORY_SOURCE_FILES,
- diagnosticHandler: collector);
+ memorySourceFiles: MEMORY_SOURCE_FILES, diagnosticHandler: collector);
collector.checkMessages([
- const Expected.error(MessageKind.READ_SCRIPT_ERROR),
- const Expected.error(MessageKind.LIBRARY_NOT_FOUND),
- const Expected.error(MessageKind.LIBRARY_NOT_FOUND),
- const Expected.error(MessageKind.READ_SCRIPT_ERROR),
- const Expected.warning(MessageKind.NOT_ASSIGNABLE)]);
+ const Expected.error(MessageKind.READ_SCRIPT_ERROR),
+ const Expected.error(MessageKind.LIBRARY_NOT_FOUND),
+ const Expected.error(MessageKind.LIBRARY_NOT_FOUND),
+ const Expected.error(MessageKind.READ_SCRIPT_ERROR),
+ const Expected.warning(MessageKind.NOT_ASSIGNABLE)
+ ]);
}
testMissingMain() async {
@@ -84,8 +84,7 @@ testMissingMain() async {
await runCompiler(
entryPoint: Uri.parse('memory:missing.dart'),
diagnosticHandler: collector);
- collector.checkMessages([
- const Expected.error(MessageKind.READ_SELF_ERROR)]);
+ collector.checkMessages([const Expected.error(MessageKind.READ_SELF_ERROR)]);
}
void main() {
« no previous file with comments | « tests/compiler/dart2js/import_mirrors_test.dart ('k') | tests/compiler/dart2js/in_user_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698