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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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/deferred_mirrors_test.dart ('k') | tests/compiler/dart2js/diagnostic_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « tests/compiler/dart2js/deferred_mirrors_test.dart ('k') | tests/compiler/dart2js/diagnostic_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698