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

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

Issue 3008793002: Use the entity model for dump_info. (Closed)
Patch Set: use codegen enqueuer Created 3 years, 4 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
Index: tests/compiler/dart2js/deferred_mirrors_test.dart
diff --git a/tests/compiler/dart2js/deferred_mirrors_test.dart b/tests/compiler/dart2js/deferred_mirrors_test.dart
index ff7b5ff8751369baa7165d541a0fec17cb25d2a7..bb98899489eeea72bdfbf92da3f3521e27e7324d 100644
--- a/tests/compiler/dart2js/deferred_mirrors_test.dart
+++ b/tests/compiler/dart2js/deferred_mirrors_test.dart
@@ -32,7 +32,7 @@ runTests() async {
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(
main, compiler.resolutionWorldBuilder.closedWorldForTesting);
- var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
+ var outputUnitForEntity = compiler.deferredLoadTask.outputUnitForEntity;
var lib1 = lookupLibrary(compiler, "memory:lib1.dart");
var lib2 = lookupLibrary(compiler, "memory:lib2.dart");
@@ -42,9 +42,9 @@ runTests() async {
var foo2 = lib2.find("foo2");
var field2 = lib2.find("field2");
- Expect.notEquals(outputUnitForElement(main), outputUnitForElement(foo1));
- Expect.equals(outputUnitForElement(main), outputUnitForElement(sin));
- Expect.equals(outputUnitForElement(foo2), outputUnitForElement(field2));
+ Expect.notEquals(outputUnitForEntity(main), outputUnitForEntity(foo1));
+ Expect.equals(outputUnitForEntity(main), outputUnitForEntity(sin));
+ Expect.equals(outputUnitForEntity(foo2), outputUnitForEntity(field2));
});
await runTest('memory:main2.dart', (compiler) {
// Just check that the compile runs.
@@ -56,7 +56,7 @@ runTests() async {
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(
main, compiler.resolutionWorldBuilder.closedWorldForTesting);
- var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
+ var outputUnitForEntity = compiler.deferredLoadTask.outputUnitForEntity;
Expect.isFalse(compiler.backend.mirrorsData.hasInsufficientMirrorsUsed);
var mainLib = lookupLibrary(compiler, "memory:main3.dart");
@@ -64,15 +64,15 @@ runTests() async {
var C = mainLib.find("C");
var foo = lib3.find("foo");
- Expect.notEquals(outputUnitForElement(main), outputUnitForElement(foo));
- Expect.equals(outputUnitForElement(main), outputUnitForElement(C));
+ Expect.notEquals(outputUnitForEntity(main), outputUnitForEntity(foo));
+ Expect.equals(outputUnitForEntity(main), outputUnitForEntity(C));
});
await runTest('memory:main4.dart', (compiler) {
var main = compiler.frontendStrategy.elementEnvironment.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(
main, compiler.resolutionWorldBuilder.closedWorldForTesting);
- var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
+ var outputUnitForEntity = compiler.deferredLoadTask.outputUnitForEntity;
lookupLibrary(compiler, "memory:main4.dart");
lookupLibrary(compiler, "memory:lib4.dart");
@@ -81,8 +81,8 @@ runTests() async {
var foo5 = lib5.find("foo");
var foo6 = lib6.find("foo");
- Expect.notEquals(outputUnitForElement(main), outputUnitForElement(foo5));
- Expect.equals(outputUnitForElement(foo5), outputUnitForElement(foo6));
+ Expect.notEquals(outputUnitForEntity(main), outputUnitForEntity(foo5));
+ Expect.equals(outputUnitForEntity(foo5), outputUnitForEntity(foo6));
});
}

Powered by Google App Engine
This is Rietveld 408576698