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

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

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 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/compiler_test.dart
diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart
index 38377d112de17166c5da1b7bb313fa472bdc2237..82db42aecd7ab91f2c9eba38f383f2c6f74e996c 100644
--- a/tests/compiler/dart2js/compiler_test.dart
+++ b/tests/compiler/dart2js/compiler_test.dart
@@ -18,7 +18,8 @@ Future testErrorHandling() {
MockCompiler compiler = new MockCompiler.internal();
return compiler.init().then((_) {
compiler.parseScript('NoSuchPrefix.NoSuchType foo() {}');
- FunctionElement foo = compiler.mainApp.find('foo');
+ LibraryElement mainApp = compiler.mainApp;
+ FunctionElement foo = mainApp.find('foo');
compiler.diagnosticHandler = new LegacyCompilerDiagnostics(
(Uri uri, int begin, int end, String message, Diagnostic kind) {
if (kind == Diagnostic.WARNING) {
« no previous file with comments | « tests/compiler/dart2js/compiler_helper.dart ('k') | tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698