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

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

Issue 2265473004: Introduce "CommonElements" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cl Created 4 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
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/minimal_resolution_test.dart
diff --git a/tests/compiler/dart2js/minimal_resolution_test.dart b/tests/compiler/dart2js/minimal_resolution_test.dart
index ddc1eafc5bdd8f3360d77fa3f1fe779a175aba45..8c3594828609aba6b0ee7f03b59551239ae5ce8e 100644
--- a/tests/compiler/dart2js/minimal_resolution_test.dart
+++ b/tests/compiler/dart2js/minimal_resolution_test.dart
@@ -15,7 +15,7 @@ import 'memory_compiler.dart';
main() {
asyncTest(() async {
await analyze('main() {}');
- await analyze('main() => proxy;', proxyConstant: true);
+ await analyze('main() => proxy;', proxyConstantComputed: true);
await analyze('@deprecated main() {}');
await analyze('@deprecated main() => deprecated;', deprecatedClass: true);
await analyze('main() => deprecated;', deprecatedClass: true);
@@ -34,18 +34,21 @@ void checkInstantiated(Compiler compiler, ClassElement cls, bool expected) {
}
analyze(String code,
- {bool proxyConstant: false, bool deprecatedClass: false}) async {
+ {bool proxyConstantComputed: false, bool deprecatedClass: false}) async {
CompilationResult result = await runCompiler(
memorySourceFiles: {'main.dart': code}, options: ['--analyze-only']);
Expect.isTrue(result.isSuccess);
Compiler compiler = result.compiler;
- Expect.equals(proxyConstant, compiler.resolution.proxyConstant != null,
+ Expect.equals(proxyConstantComputed,
+ compiler.resolution.wasProxyConstantComputedTestingOnly,
"Unexpected computation of proxy constant.");
checkInstantiated(
- compiler, compiler.coreLibrary.find('_Proxy'), proxyConstant);
+ compiler, compiler.commonElements.coreLibrary.find('_Proxy'),
+ proxyConstantComputed);
checkInstantiated(
- compiler, compiler.coreLibrary.find('Deprecated'), deprecatedClass);
+ compiler, compiler.commonElements.coreLibrary.find('Deprecated'),
+ deprecatedClass);
LibraryElement jsHelperLibrary =
compiler.libraryLoader.lookupLibrary(BackendHelpers.DART_JS_HELPER);
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698