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

Unified Diff: tests/compiler/dart2js/kernel/class_hierarchy_test.dart

Issue 2609433002: Fix rasta unittests: now unit tests need to run the full compiler to use its (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/kernel/visitor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | tests/compiler/dart2js/kernel/visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698