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

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: 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/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..d1917a8c3e1f500323daac2b890c3cc87de34c94 100644
--- a/tests/compiler/dart2js/emit_const_fields_test.dart
+++ b/tests/compiler/dart2js/emit_const_fields_test.dart
@@ -4,6 +4,7 @@
// Test that unused static consts are not emitted.
import "package:expect/expect.dart";
+import "../../async_helper.dart";
import 'compiler_helper.dart';
const String TEST_GUIDE = r"""
@@ -18,8 +19,9 @@ main() {
""";
main() {
- String generated = compileAll(TEST_GUIDE);
- Expect.isTrue(generated.contains("42"));
- Expect.isFalse(generated.contains("TITLE"));
+ asyncTest(() => compileAll(TEST_GUIDE).then((generated) {
+ Expect.isTrue(generated.contains("42"));
+ Expect.isFalse(generated.contains("TITLE"));
+ }));
}

Powered by Google App Engine
This is Rietveld 408576698