| Index: tests/compiler/dart2js/string_interpolation_test.dart
|
| diff --git a/tests/compiler/dart2js/string_interpolation_test.dart b/tests/compiler/dart2js/string_interpolation_test.dart
|
| index f6e3bca68df71cce7229b252816779941a90c26a..a927a08cdf8d31e3dcc07f24c7c2e602295de54f 100644
|
| --- a/tests/compiler/dart2js/string_interpolation_test.dart
|
| +++ b/tests/compiler/dart2js/string_interpolation_test.dart
|
| @@ -6,10 +6,11 @@ import "package:expect/expect.dart";
|
| import 'compiler_helper.dart';
|
|
|
| main() {
|
| - String code =
|
| - compileAll(r'''main() { return "${2}${true}${'a'}${3.14}"; }''');
|
| - Expect.isTrue(code.contains(r'2truea3.14'));
|
| + compileAll(r'''main() { return "${2}${true}${'a'}${3.14}"; }''').then((code) {
|
| + Expect.isTrue(code.contains(r'2truea3.14'));
|
| + });
|
|
|
| - code = compileAll(r'''main() { return "foo ${new Object()}"; }''');
|
| - Expect.isFalse(code.contains(r'concat'));
|
| + compileAll(r'''main() { return "foo ${new Object()}"; }''').then((code) {
|
| + Expect.isFalse(code.contains(r'concat'));
|
| + });
|
| }
|
|
|