| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// Check that relative URIs are resolved against the canonical name of a | 5 /// Check that relative URIs are resolved against the canonical name of a |
| 6 /// library. This only matters for dart:-libraries, so this test mocks up two | 6 /// library. This only matters for dart:-libraries, so this test mocks up two |
| 7 /// dart:-libraries. | 7 /// dart:-libraries. |
| 8 | 8 |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| 11 import "dart:async"; | 11 import "dart:async"; |
| 12 | 12 |
| 13 import "memory_source_file_helper.dart"; | 13 import "memory_source_file_helper.dart"; |
| 14 | 14 |
| 15 import "package:async_helper/async_helper.dart"; | 15 import "package:async_helper/async_helper.dart"; |
| 16 | 16 |
| 17 import 'package:expect/expect.dart' show | 17 import 'package:expect/expect.dart' show |
| 18 Expect; | 18 Expect; |
| 19 | 19 |
| 20 import 'package:compiler/src/diagnostics/messages.dart' show |
| 21 MessageKind, |
| 22 MessageTemplate; |
| 23 |
| 20 import 'package:compiler/src/elements/elements.dart' show | 24 import 'package:compiler/src/elements/elements.dart' show |
| 21 LibraryElement; | 25 LibraryElement; |
| 22 | 26 |
| 23 import 'package:compiler/src/messages.dart' show | |
| 24 MessageKind, | |
| 25 MessageTemplate; | |
| 26 | |
| 27 import 'package:compiler/src/null_compiler_output.dart' show | 27 import 'package:compiler/src/null_compiler_output.dart' show |
| 28 NullCompilerOutput; | 28 NullCompilerOutput; |
| 29 | 29 |
| 30 import 'package:compiler/src/old_to_new_api.dart' show | 30 import 'package:compiler/src/old_to_new_api.dart' show |
| 31 LegacyCompilerDiagnostics, | 31 LegacyCompilerDiagnostics, |
| 32 LegacyCompilerInput; | 32 LegacyCompilerInput; |
| 33 | 33 |
| 34 import 'package:sdk_library_metadata/libraries.dart' show | 34 import 'package:sdk_library_metadata/libraries.dart' show |
| 35 DART2JS_PLATFORM, | 35 DART2JS_PLATFORM, |
| 36 LibraryInfo; | 36 LibraryInfo; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 asyncStart(); | 123 asyncStart(); |
| 124 compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1")) | 124 compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1")) |
| 125 .then(checkLibrary) | 125 .then(checkLibrary) |
| 126 .then(asyncSuccess); | 126 .then(asyncSuccess); |
| 127 } | 127 } |
| 128 | 128 |
| 129 const Map MEMORY_SOURCE_FILES = const { | 129 const Map MEMORY_SOURCE_FILES = const { |
| 130 "mock1.dart": "library mock1; import 'mock2.dart';", | 130 "mock1.dart": "library mock1; import 'mock2.dart';", |
| 131 "mock2.dart": "library mock2;", | 131 "mock2.dart": "library mock2;", |
| 132 }; | 132 }; |
| OLD | NEW |