Index: tests/compiler/dart2js/kernel/class_hierarchy_test.dart |
diff --git a/tests/compiler/dart2js/kernel/class_hierarchy_test.dart b/tests/compiler/dart2js/kernel/class_hierarchy_test.dart |
index 9b6aa08451375e0931ab3a33992c930097fe1ea9..bb90c675101a001c440b33f342a6b0c7ecb04161 100644 |
--- a/tests/compiler/dart2js/kernel/class_hierarchy_test.dart |
+++ b/tests/compiler/dart2js/kernel/class_hierarchy_test.dart |
@@ -31,12 +31,13 @@ main(List<String> arguments) { |
''' |
}, options: [ |
Flags.analyzeOnly, |
- Flags.analyzeMain, |
+ Flags.analyzeAll, |
Flags.useKernel |
]); |
test('mixin', () async { |
Uri mainUri = Uri.parse('memory:main.dart'); |
- LibraryElement library = await compiler.analyzeUri(mainUri); |
+ await compiler.run(mainUri); |
+ LibraryElement library = await compiler.libraryLoader.loadLibrary(mainUri); |
JavaScriptBackend backend = compiler.backend; |
ir.Program program = backend.kernelTask.buildProgram(library); |
ClassHierarchy hierarchy = new ClassHierarchy(program); |