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

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

Issue 2936233003: Remove Compiler.mainApp and Compiler.mainFunction (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tests/compiler/dart2js/kernel/impact_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/mirrors_used_test.dart
diff --git a/tests/compiler/dart2js/mirrors_used_test.dart b/tests/compiler/dart2js/mirrors_used_test.dart
index f1758a3dc685ac0190ac2d9039fa76ae55eea881..7d55cb088d687c6d042a629bdb5fc151913cafa0 100644
--- a/tests/compiler/dart2js/mirrors_used_test.dart
+++ b/tests/compiler/dart2js/mirrors_used_test.dart
@@ -113,7 +113,9 @@ void main() {
for (var library in compiler.libraryLoader.libraries) {
library.forEachLocalMember((member) {
if (member.isClass) {
- if (library == compiler.mainApp && member.name == 'Foo') {
+ if (library ==
+ compiler.frontendStrategy.elementEnvironment.mainLibrary &&
+ member.name == 'Foo') {
Expect.isTrue(
compiler.backend.mirrorsData
.isClassAccessibleByReflection(member),
« no previous file with comments | « tests/compiler/dart2js/kernel/impact_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698