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

Unified Diff: tests/compiler/dart2js/emit_const_fields_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/emit_const_fields_test.dart
diff --git a/tests/compiler/dart2js/emit_const_fields_test.dart b/tests/compiler/dart2js/emit_const_fields_test.dart
index d539d896236f5d7ad1afdbb06b8b0d77e8baad8f..9428c5146670562fed9f1378a0e8441af10faa2d 100644
--- a/tests/compiler/dart2js/emit_const_fields_test.dart
+++ b/tests/compiler/dart2js/emit_const_fields_test.dart
@@ -18,8 +18,9 @@ main() {
""";
main() {
- String generated = compileAll(TEST_GUIDE);
- Expect.isTrue(generated.contains("42"));
- Expect.isFalse(generated.contains("TITLE"));
+ compileAll(TEST_GUIDE).then((generated) {
+ Expect.isTrue(generated.contains("42"));
+ Expect.isFalse(generated.contains("TITLE"));
+ });
}

Powered by Google App Engine
This is Rietveld 408576698