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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments Created 4 years, 3 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/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 0109f8d5b9d575741b4a8ead8843bf4803510569..ee0bfdaf5c52715e9665b8c9c40a8824c141d84c 100644
--- a/tests/compiler/dart2js/world_test.dart
+++ b/tests/compiler/dart2js/world_test.dart
@@ -44,7 +44,7 @@ testClassSets() async {
}
""",
useMockCompiler: false);
- ClassWorld classWorld = env.compiler.world;
+ ClassWorld classWorld = env.compiler.closedWorld;
ClassElement Object_ = env.getElement("Object");
ClassElement A = env.getElement("A");
@@ -67,14 +67,14 @@ testClassSets() async {
Expect.isTrue(foundClasses.contains(expectedClass),
"Expect $expectedClass in '$property' on $cls. "
"Found:\n ${foundClasses.join('\n ')}\n"
- "${env.compiler.world.dump(cls)}");
+ "${env.compiler.closedWorld.dump(cls)}");
}
if (exact) {
Expect.equals(expectedClasses.length, foundClasses.length,
"Unexpected classes "
"${foundClasses.where((c) => !expectedClasses.contains(c))} "
"in '$property' on $cls.\n"
- "${env.compiler.world.dump(cls)}");
+ "${env.compiler.closedWorld.dump(cls)}");
}
}
@@ -101,7 +101,7 @@ testClassSets() async {
int count = getCount(cls);
Expect.equals(expectedClasses.length, count,
"Unexpected class count in '$property' on $cls.\n"
- "${env.compiler.world.dump(cls)}");
+ "${env.compiler.closedWorld.dump(cls)}");
}
}
@@ -257,7 +257,7 @@ testProperties() async {
}
""",
useMockCompiler: false);
- ClassWorld classWorld = env.compiler.world;
+ ClassWorld classWorld = env.compiler.closedWorld;
check(String name,
{bool hasStrictSubtype,
« 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