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

Unified Diff: tests/compiler/dart2js/in_user_code_test.dart

Issue 330913004: Move Compiler.libraries to LibraryLoader. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix compiler_isolate.dart Created 6 years, 6 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
Index: tests/compiler/dart2js/in_user_code_test.dart
diff --git a/tests/compiler/dart2js/in_user_code_test.dart b/tests/compiler/dart2js/in_user_code_test.dart
index 415a1dc32061336beb8874492f7b8d862f25e4e3..66848291eb3b315bb2000682140ba9f3f95ea3d5 100644
--- a/tests/compiler/dart2js/in_user_code_test.dart
+++ b/tests/compiler/dart2js/in_user_code_test.dart
@@ -54,7 +54,7 @@ void test(List<Uri> entryPoints, Map<String, bool> expectedResults) {
}
asyncTest(() => compiler.run(mainUri).then((_) {
expectedResults.forEach((String uri, bool expectedResult) {
- var element = compiler.libraries[uri];
+ var element = compiler.libraryLoader.lookupLibrary(Uri.parse(uri));
Expect.isNotNull(element, "Unknown library '$uri'.");
Expect.equals(expectedResult, compiler.inUserCode(element),
expectedResult ? "Library '$uri' expected to be in user code"

Powered by Google App Engine
This is Rietveld 408576698