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

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

Issue 2320583002: Introduce OpenWorld. (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/kernel/impact_test.dart ('k') | tests/compiler/dart2js/subtypeset_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index 11d5037e562aa71384c542aa761a114f04d63d0a..9c31628c126c3443419eacdc24b9de74e273941e 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -920,8 +920,7 @@ Future testPatchAndSelector() async {
""",
runCompiler: true,
analyzeOnly: true);
- World world = compiler.openWorld;
- world.populate();
+ ClosedWorld world = compiler.openWorld.populate();
ClassElement cls = ensure(
compiler, "A", compiler.commonElements.coreLibrary.find,
@@ -943,7 +942,7 @@ Future testPatchAndSelector() async {
TypeMask typeMask = new TypeMask.exact(cls, world);
FunctionElement method = cls.implementation.lookupLocalMember('method');
method.computeType(compiler.resolution);
- Expect.isTrue(selector.applies(method, world));
+ Expect.isTrue(selector.applies(method, world.backend));
Expect.isTrue(typeMask.canHit(method, selector, world));
// Check that the declaration method in the declaration class is a target
@@ -953,7 +952,7 @@ Future testPatchAndSelector() async {
typeMask = new TypeMask.exact(cls, world);
method = cls.lookupLocalMember('clear');
method.computeType(compiler.resolution);
- Expect.isTrue(selector.applies(method, world));
+ Expect.isTrue(selector.applies(method, world.backend));
Expect.isTrue(typeMask.canHit(method, selector, world));
// Check that the declaration method in the declaration class is a target
@@ -961,7 +960,7 @@ Future testPatchAndSelector() async {
cls = ensure(compiler, "B", compiler.commonElements.coreLibrary.find);
cls.ensureResolved(compiler.resolution);
typeMask = new TypeMask.exact(cls, world);
- Expect.isTrue(selector.applies(method, world));
+ Expect.isTrue(selector.applies(method, world.backend));
Expect.isTrue(typeMask.canHit(method, selector, world));
}
« no previous file with comments | « tests/compiler/dart2js/kernel/impact_test.dart ('k') | tests/compiler/dart2js/subtypeset_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698