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

Unified Diff: tests/compiler/dart2js/deferred_custom_element_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_custom_element_test.dart
diff --git a/tests/compiler/dart2js/deferred_custom_element_test.dart b/tests/compiler/dart2js/deferred_custom_element_test.dart
index 120574868c3802c9203b7a0d54158fda7aee1152..57284f496b3865b5dbba2037e4db8390851ac351 100644
--- a/tests/compiler/dart2js/deferred_custom_element_test.dart
+++ b/tests/compiler/dart2js/deferred_custom_element_test.dart
@@ -16,15 +16,15 @@ void main() {
CompilationResult result =
await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES);
Compiler compiler = result.compiler;
- var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
+ var outputUnitForEntity = compiler.deferredLoadTask.outputUnitForEntity;
var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit;
dynamic lib =
compiler.libraryLoader.lookupLibrary(Uri.parse("memory:lib.dart"));
var customType = lib.find("CustomType");
var foo = lib.find("foo");
- Expect.notEquals(mainOutputUnit, outputUnitForElement(foo));
+ Expect.notEquals(mainOutputUnit, outputUnitForEntity(foo));
// Native elements are not deferred
- Expect.equals(mainOutputUnit, outputUnitForElement(customType));
+ Expect.equals(mainOutputUnit, outputUnitForEntity(customType));
});
}
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698