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

Unified Diff: tests/compiler/dart2js/resolution_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/regress_10231_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolution_test.dart
diff --git a/tests/compiler/dart2js/resolution_test.dart b/tests/compiler/dart2js/resolution_test.dart
index 32f59457a5f015ca4fa6efb6ce3e01460383c7ed..ac978580b016b1418d9e5fa1f6bc92443bd9b8bd 100644
--- a/tests/compiler/dart2js/resolution_test.dart
+++ b/tests/compiler/dart2js/resolution_test.dart
@@ -6,6 +6,7 @@
// needed by the backend.
import 'package:expect/expect.dart';
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
import 'parser_helper.dart';
@@ -94,8 +95,9 @@ main() {
void test(String code, void check(Compiler compiler)) {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(code, uri);
- compiler.runCompiler(uri);
- check(compiler);
+ asyncTest(() => compiler.runCompiler(uri).then((_) {
+ check(compiler);
+ }));
}
void testHasRuntimeType(String code) {
« no previous file with comments | « tests/compiler/dart2js/regress_10231_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698