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

Unified Diff: tests/compiler/dart2js/import_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/gvn_test.dart ('k') | tests/compiler/dart2js/inferrer_factory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/import_test.dart
diff --git a/tests/compiler/dart2js/import_test.dart b/tests/compiler/dart2js/import_test.dart
index 54748c43ff7d0c78c8f5f1f863977f00b8e81164..aeaa46907f103e9474f15671820e75b5c98aebc4 100644
--- a/tests/compiler/dart2js/import_test.dart
+++ b/tests/compiler/dart2js/import_test.dart
@@ -8,6 +8,7 @@
library dart2js.test.import;
import 'package:expect/expect.dart';
+import "package:async_helper/async_helper.dart";
import 'memory_compiler.dart';
const MEMORY_SOURCE_FILES = const {
@@ -30,17 +31,19 @@ main() {
testMissingImports() {
var collector = new DiagnosticCollector();
var compiler = compilerFor(MEMORY_SOURCE_FILES, diagnosticHandler: collector);
- compiler.run(Uri.parse('memory:main.dart'));
- Expect.equals(4, collector.errors.length);
- Expect.equals(1, collector.warnings.length);
+ asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
+ Expect.equals(4, collector.errors.length);
+ Expect.equals(1, collector.warnings.length);
+ }));
}
testMissingMain() {
var collector = new DiagnosticCollector();
var compiler = compilerFor({}, diagnosticHandler: collector);
- compiler.run(Uri.parse('memory:missing.dart'));
- Expect.equals(1, collector.errors.length);
- Expect.equals(0, collector.warnings.length);
+ asyncTest(() => compiler.run(Uri.parse('memory:missing.dart')).then((_) {
+ Expect.equals(1, collector.errors.length);
+ Expect.equals(0, collector.warnings.length);
+ }));
}
void main() {
« no previous file with comments | « tests/compiler/dart2js/gvn_test.dart ('k') | tests/compiler/dart2js/inferrer_factory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698