Chromium Code Reviews| 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); |
|
Harry Terkelsen
2016/08/22 19:36:20
strongly consider just deleting this test case...
Siggi Cherem (dart-lang)
2016/08/22 21:21:45
I totally agree with you. I'll add a big TODO on t
|
| 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); |