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

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

Issue 1299413002: Move common identifiers, names and selectors to a separate library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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_mirrors_test.dart
diff --git a/tests/compiler/dart2js/deferred_mirrors_test.dart b/tests/compiler/dart2js/deferred_mirrors_test.dart
index dc55bbf4c633df825f5a753a02d4384bc829a5cf..d48550cc44f4900e3ed9d1c3b96da225ace2fc94 100644
--- a/tests/compiler/dart2js/deferred_mirrors_test.dart
+++ b/tests/compiler/dart2js/deferred_mirrors_test.dart
@@ -30,7 +30,7 @@ void main() {
runTests() async {
await runTest('memory:main.dart', (compiler) {
- var main = compiler.mainApp.find(dart2js.Compiler.MAIN);
+ var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(main);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
@@ -53,7 +53,7 @@ runTests() async {
Expect.isTrue(true);
});
await runTest('memory:main3.dart', (compiler) {
- var main = compiler.mainApp.find(dart2js.Compiler.MAIN);
+ var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(main);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
@@ -68,7 +68,7 @@ runTests() async {
Expect.equals(outputUnitForElement(main), outputUnitForElement(C));
});
await runTest('memory:main4.dart', (compiler) {
- var main = compiler.mainApp.find(dart2js.Compiler.MAIN);
+ var main = compiler.mainFunction;
Expect.isNotNull(main, "Could not find 'main'");
compiler.deferredLoadTask.onResolutionComplete(main);
var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;

Powered by Google App Engine
This is Rietveld 408576698