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

Unified Diff: tests/utils/dummy_compiler_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/unneeded_part_js_test.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/dummy_compiler_test.dart
diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
index 5c7c1dae6b6cf346039935d9de223d764c6d0ff1..be633462bb6a111be9178edecd901d9fdfb3334d 100644
--- a/tests/utils/dummy_compiler_test.dart
+++ b/tests/utils/dummy_compiler_test.dart
@@ -8,6 +8,7 @@
library dummy_compiler;
import 'dart:async';
+import "package:async_helper/async_helper.dart";
import '../../sdk/lib/_internal/compiler/compiler.dart';
@@ -102,6 +103,7 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
}
main() {
+ asyncStart();
Future<String> result =
compile(new Uri(scheme: 'main'),
new Uri(scheme: 'lib', path: '/'),
@@ -113,5 +115,5 @@ main() {
}
}, onError: (e) {
throw 'Compilation failed';
- });
+ }).whenComplete(() => asyncEnd());
}
« no previous file with comments | « tests/compiler/dart2js/unneeded_part_js_test.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698