Index: tests/compiler/dart2js/deferred_not_in_main_test.dart |
diff --git a/tests/compiler/dart2js/deferred_not_in_main_test.dart b/tests/compiler/dart2js/deferred_not_in_main_test.dart |
index 17a330b3c625e3ba10dfbcc6e723e25fc47778c4..428fb64515c25b9df5a65175f21cb357f5a6d52a 100644 |
--- a/tests/compiler/dart2js/deferred_not_in_main_test.dart |
+++ b/tests/compiler/dart2js/deferred_not_in_main_test.dart |
@@ -25,14 +25,12 @@ void deferredTest1() { |
return compiler.libraryLoader.lookupLibrary(Uri.parse(name)); |
} |
- var main = compiler.frontendStrategy.elementEnvironment.mainFunction; |
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement; |
var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit; |
- var backend = compiler.backend; |
- var lib1 = lookupLibrary("memory:lib1.dart"); |
- var lib2 = lookupLibrary("memory:lib2.dart"); |
- var foo1 = lib1.find("foo1"); |
+ dynamic lib1 = lookupLibrary("memory:lib1.dart"); |
+ dynamic lib2 = lookupLibrary("memory:lib2.dart"); |
+ lib1.find("foo1"); |
var foo2 = lib2.find("foo2"); |
Expect.notEquals(mainOutputUnit, outputUnitForElement(foo2)); |
@@ -48,11 +46,10 @@ void deferredTest2() { |
return compiler.libraryLoader.lookupLibrary(Uri.parse(name)); |
} |
- var main = compiler.frontendStrategy.elementEnvironment.mainFunction; |
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement; |
var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit; |
- var shared = lookupLibrary("memory:shared.dart"); |
+ dynamic shared = lookupLibrary("memory:shared.dart"); |
var a = shared.find("A"); |
Expect.equals(mainOutputUnit, outputUnitForElement(a)); |