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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
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'));
+ });
}

Powered by Google App Engine
This is Rietveld 408576698