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

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: Updated cf. comments Created 7 years, 3 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
« no previous file with comments | « tests/compiler/dart2js/static_closure_test.dart ('k') | tests/compiler/dart2js/subtype_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..01ea1bb96e7f1dfc6326dc63e560aaffc10d7d1d 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 "package:async_helper/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'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/static_closure_test.dart ('k') | tests/compiler/dart2js/subtype_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698