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

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

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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
« no previous file with comments | « tests/compiler/dart2js/kernel/constructors_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/helper.dart
diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart
index cbb1638bc1fb9f6591e2ac287b992ae8edb73bde..65f219d35007f17de68c0a085dc1ac2d0d988e07 100644
--- a/tests/compiler/dart2js/kernel/helper.dart
+++ b/tests/compiler/dart2js/kernel/helper.dart
@@ -5,7 +5,8 @@
import 'dart:async';
import 'package:compiler/src/compiler.dart' show Compiler;
-import 'package:compiler/src/elements/elements.dart' show Element;
+import 'package:compiler/src/elements/elements.dart'
+ show Element, LibraryElement;
import 'package:compiler/src/js_backend/backend.dart' as js
show JavaScriptBackend;
import 'package:compiler/src/commandline_options.dart' show Flags;
@@ -32,9 +33,10 @@ Future<String> compile(String code,
memorySourceFiles: {'main.dart': code}, options: options);
expect(result.isSuccess, isTrue);
Compiler compiler = result.compiler;
+ LibraryElement mainApp = compiler.mainApp;
Element element;
if (lookup is String) {
- element = compiler.mainApp.find(lookup);
+ element = mainApp.find(lookup);
} else {
element = lookup(compiler);
}
« no previous file with comments | « tests/compiler/dart2js/kernel/constructors_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698