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() { |