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

Unified Diff: tests/compiler/dart2js/rewrite_better_user_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/resolver_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_and_or_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/rewrite_better_user_test.dart
diff --git a/tests/compiler/dart2js/rewrite_better_user_test.dart b/tests/compiler/dart2js/rewrite_better_user_test.dart
index 6d1fbfe61d2dfc85ab66a7a4ecacac36da1eba11..ec1fcbc131352314f3dfcbc5a6e09128c8ca8886 100644
--- a/tests/compiler/dart2js/rewrite_better_user_test.dart
+++ b/tests/compiler/dart2js/rewrite_better_user_test.dart
@@ -5,6 +5,7 @@
// field is being gvn'ed.
import 'compiler_helper.dart';
+import "package:async_helper/async_helper.dart";
const String TEST = r"""
class A {
@@ -25,11 +26,12 @@ main() {
""";
main() {
- String generated = compileAll(TEST);
- RegExp regexp = new RegExp('foo\\\$0\\\$bailout');
- Iterator matches = regexp.allMatches(generated).iterator;
+ asyncTest(() => compileAll(TEST).then((generated) {
+ RegExp regexp = new RegExp('foo\\\$0\\\$bailout');
+ Iterator matches = regexp.allMatches(generated).iterator;
- // We check that there is only one call to the bailout method.
- // One match for the call, one for the definition.
- checkNumberOfMatches(matches, 2);
+ // We check that there is only one call to the bailout method.
+ // One match for the call, one for the definition.
+ checkNumberOfMatches(matches, 2);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/resolver_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_and_or_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698