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

Unified Diff: tests/compiler/dart2js/class_order_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
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | tests/compiler/dart2js/closure_codegen_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/class_order_test.dart
diff --git a/tests/compiler/dart2js/class_order_test.dart b/tests/compiler/dart2js/class_order_test.dart
index a4cc29e48ab11ebce029daf77157858b068ecf71..26850f0509f2f377b87d119d58bcd22a7aac6739 100644
--- a/tests/compiler/dart2js/class_order_test.dart
+++ b/tests/compiler/dart2js/class_order_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';
const String TEST_ONE = r"""
@@ -35,9 +36,11 @@ main() {
// we just verify that their members are in the correct order.
RegExp regexp = new RegExp(r"foo\$0?:(.|\n)*bar\$0:(.|\n)*gee\$0:");
- String generated = compileAll(TEST_ONE);
- Expect.isTrue(regexp.hasMatch(generated));
+ asyncTest(() => compileAll(TEST_ONE).then((generated) {
+ Expect.isTrue(regexp.hasMatch(generated));
+ }));
- generated = compileAll(TEST_TWO);
- Expect.isTrue(regexp.hasMatch(generated));
+ asyncTest(() => compileAll(TEST_TWO).then((generated) {
+ Expect.isTrue(regexp.hasMatch(generated));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | tests/compiler/dart2js/closure_codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698