Index: tests/compiler/dart2js/kernel/helper.dart |
diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart |
index 5f79346330bba4f364b2d8d434b685c5103c811f..37dfe15a87e9d37c28b7f364e696968d33bd8517 100644 |
--- a/tests/compiler/dart2js/kernel/helper.dart |
+++ b/tests/compiler/dart2js/kernel/helper.dart |
@@ -2,8 +2,11 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import 'dart:async'; |
+ |
+import 'package:compiler/src/compiler.dart' show Compiler; |
import 'package:compiler/src/elements/elements.dart' show Element; |
-import 'package:compiler/src/js_backend/backend.dart' show JavaScriptBackend; |
+import 'package:compiler/src/js_backend/backend.dart' as js show JavaScriptBackend; |
import 'package:compiler/src/commandline_options.dart' show Flags; |
import 'package:test/test.dart'; |
@@ -30,7 +33,7 @@ Future<String> compile(String code, {String entry: 'main', |
return backend.getGeneratedCode(element); |
} |
-void check(String code, {String entry: 'main'}) async { |
+Future check(String code, {String entry: 'main'}) async { |
var original = await compile(code, entry: entry, useKernel: false); |
var kernel = await compile(code, entry: entry, useKernel: true); |
expect(original, kernel); |