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"; | |
10 | |
11 import "dart:async"; | 9 import "dart:async"; |
12 | 10 |
13 import "memory_source_file_helper.dart"; | 11 import "memory_source_file_helper.dart"; |
14 | 12 |
15 import "package:async_helper/async_helper.dart"; | 13 import "package:async_helper/async_helper.dart"; |
16 | 14 |
17 import 'package:expect/expect.dart' show Expect; | 15 import 'package:expect/expect.dart' show Expect; |
18 | 16 |
19 import 'package:compiler/compiler_new.dart'; | 17 import 'package:compiler/compiler_new.dart'; |
20 | 18 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 var libraries = | 90 var libraries = |
93 await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1")); | 91 await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1")); |
94 await checkLibraries(libraries); | 92 await checkLibraries(libraries); |
95 asyncSuccess(null); | 93 asyncSuccess(null); |
96 } | 94 } |
97 | 95 |
98 const Map MEMORY_SOURCE_FILES = const { | 96 const Map MEMORY_SOURCE_FILES = const { |
99 "mock1.dart": "library mock1; import 'mock2.dart';", | 97 "mock1.dart": "library mock1; import 'mock2.dart';", |
100 "mock2.dart": "library mock2;", | 98 "mock2.dart": "library mock2;", |
101 }; | 99 }; |
OLD | NEW |