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

Unified Diff: tests/compiler/dart2js/type_test_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/type_combination_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index 7d03616225bf5cac810e6b09a26a9e7f06938078..6f51c3b578537f95a71c23f2ed95be78dea986ea 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -13,7 +13,12 @@ import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/elements/resolution_types.dart';
import 'package:compiler/src/compiler.dart' show Compiler;
import 'package:compiler/src/elements/elements.dart'
- show Element, MemberElement, TypeDeclarationElement, ClassElement;
+ show
+ Element,
+ MemberElement,
+ TypeDeclarationElement,
+ ClassElement,
+ LibraryElement;
import 'package:compiler/src/world.dart' show ClosedWorld;
GenericType instantiate(
@@ -86,7 +91,8 @@ class TypeEnvironment {
TypeEnvironment._(Compiler this.compiler);
Element getElement(String name) {
- var element = compiler.mainApp.find(name);
+ LibraryElement mainApp = compiler.mainApp;
+ var element = mainApp.find(name);
Expect.isNotNull(element);
if (element.isClass) {
element.ensureResolved(compiler.resolution);
« no previous file with comments | « tests/compiler/dart2js/type_combination_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698