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

Unified Diff: tests/compiler/dart2js/field_codegen_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
Index: tests/compiler/dart2js/field_codegen_test.dart
diff --git a/tests/compiler/dart2js/field_codegen_test.dart b/tests/compiler/dart2js/field_codegen_test.dart
index d9a8aec6543750968bd980ce3c29bcb063f4c160..eb1a6c4c3d726c14728ff9cbf34d645d354d29ef 100644
--- a/tests/compiler/dart2js/field_codegen_test.dart
+++ b/tests/compiler/dart2js/field_codegen_test.dart
@@ -4,6 +4,7 @@
// Test that parameters keep their names in the output.
import "package:expect/expect.dart";
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
import 'parser_helper.dart';
@@ -20,8 +21,11 @@ main() { return x; }
""";
main() {
- String generated = compileAll(TEST_NULL0);
- Expect.isTrue(generated.contains("null"));
- generated = compileAll(TEST_NULL1);
- Expect.isTrue(generated.contains("null"));
+ asyncTest(() => compileAll(TEST_NULL0).then((generated) {
+ Expect.isTrue(generated.contains("null"));
+ }));
+
+ asyncTest(() => compileAll(TEST_NULL1).then((generated) {
+ Expect.isTrue(generated.contains("null"));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/emit_const_fields_test.dart ('k') | tests/compiler/dart2js/field_type_simple_inferer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698