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

Unified Diff: tests/compiler/dart2js/no_constructor_body_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/no_constructor_body_test.dart
diff --git a/tests/compiler/dart2js/no_constructor_body_test.dart b/tests/compiler/dart2js/no_constructor_body_test.dart
index 0a11b017392d22902ce4f7b7ce7506d9184b5b5f..d0217e5d2cce95594dda5e55c41417a4cea5ceb3 100644
--- a/tests/compiler/dart2js/no_constructor_body_test.dart
+++ b/tests/compiler/dart2js/no_constructor_body_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import "../../async_helper.dart";
import 'compiler_helper.dart';
const String TEST = r"""
@@ -17,7 +18,7 @@ main() {
""";
main() {
- String generated = compileAll(TEST);
- Expect.isTrue(
- generated.contains('A: {"": "Object;", static:'));
+ asyncTest(() => compileAll(TEST).then((generated) {
+ Expect.isTrue(generated.contains('A: {"": "Object;", static:'));
+ }));
}

Powered by Google App Engine
This is Rietveld 408576698