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

Unified Diff: tests/compiler/dart2js/dead_code_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/dead_code_test.dart
diff --git a/tests/compiler/dart2js/dead_code_test.dart b/tests/compiler/dart2js/dead_code_test.dart
index 993d7e9505a471bdbaabe642020eb8c743426fde..4736a292e067392f5c716a167f09a50a3983bed2 100644
--- a/tests/compiler/dart2js/dead_code_test.dart
+++ b/tests/compiler/dart2js/dead_code_test.dart
@@ -16,6 +16,7 @@ foo(a) {
''';
main() {
- String generated = compileAll(TEST);
- Expect.isFalse(generated.contains('return 42'), 'dead code not eliminated');
+ compileAll(TEST).then((generated) {
+ Expect.isFalse(generated.contains('return 42'), 'dead code not eliminated');
+ });
}

Powered by Google App Engine
This is Rietveld 408576698