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

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: Rebased Created 7 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/string_interpolation_test.dart
diff --git a/tests/compiler/dart2js/string_interpolation_test.dart b/tests/compiler/dart2js/string_interpolation_test.dart
index f6e3bca68df71cce7229b252816779941a90c26a..5b6fa5a9cb6093d5824eab10ca7dfe16e31f3bf2 100644
--- a/tests/compiler/dart2js/string_interpolation_test.dart
+++ b/tests/compiler/dart2js/string_interpolation_test.dart
@@ -3,13 +3,17 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import "../../async_helper.dart";
import 'compiler_helper.dart';
main() {
- String code =
- compileAll(r'''main() { return "${2}${true}${'a'}${3.14}"; }''');
- Expect.isTrue(code.contains(r'2truea3.14'));
+ asyncTest(() => 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'));
+ asyncTest(() => compileAll(
+ r'''main() { return "foo ${new Object()}"; }''').then((code) {
+ Expect.isFalse(code.contains(r'concat'));
+ }));
}

Powered by Google App Engine
This is Rietveld 408576698