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

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

Issue 2577423002: Further reduce use of Compiler.closedWorld. (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 | « tests/compiler/dart2js/union_type_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/world_test.dart
diff --git a/tests/compiler/dart2js/world_test.dart b/tests/compiler/dart2js/world_test.dart
index 4e293077f43454f922a4ad616430315ebdf53a20..b8f49f9624627056eb7502d254e98806a76bf417 100644
--- a/tests/compiler/dart2js/world_test.dart
+++ b/tests/compiler/dart2js/world_test.dart
@@ -49,7 +49,7 @@ testClassSets() async {
}
""",
useMockCompiler: false);
- ClosedWorld closedWorld = env.compiler.closedWorld;
+ ClosedWorld closedWorld = env.closedWorld;
ClassElement Object_ = env.getElement("Object");
ClassElement A = env.getElement("A");
@@ -69,7 +69,7 @@ testClassSets() async {
foundClasses.contains(expectedClass),
"Expect $expectedClass in '$property' on $cls. "
"Found:\n ${foundClasses.join('\n ')}\n"
- "${env.compiler.closedWorld.dump(cls)}");
+ "${closedWorld.dump(cls)}");
}
if (exact) {
Expect.equals(
@@ -78,7 +78,7 @@ testClassSets() async {
"Unexpected classes "
"${foundClasses.where((c) => !expectedClasses.contains(c))} "
"in '$property' on $cls.\n"
- "${env.compiler.closedWorld.dump(cls)}");
+ "${closedWorld.dump(cls)}");
}
}
@@ -104,7 +104,7 @@ testClassSets() async {
expectedClasses.length,
count,
"Unexpected class count in '$property' on $cls.\n"
- "${env.compiler.closedWorld.dump(cls)}");
+ "${closedWorld.dump(cls)}");
}
}
@@ -239,7 +239,7 @@ testProperties() async {
}
""",
useMockCompiler: false);
- ClosedWorld closedWorld = env.compiler.closedWorld;
+ ClosedWorld closedWorld = env.closedWorld;
check(String name, {bool hasStrictSubtype, bool hasOnlySubclasses}) {
ClassElement cls = env.getElement(name);
@@ -316,7 +316,7 @@ testNativeClasses() async {
}
""",
useMockCompiler: false);
- ClosedWorld closedWorld = env.compiler.closedWorld;
+ ClosedWorld closedWorld = env.closedWorld;
LibraryElement dart_html =
env.compiler.libraryLoader.lookupLibrary(Uris.dart_html);
« no previous file with comments | « tests/compiler/dart2js/union_type_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698