| 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);
|
| });
|
|
|