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

Unified Diff: tests/compiler/dart2js/list_tracer_length_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
Index: tests/compiler/dart2js/list_tracer_length_test.dart
diff --git a/tests/compiler/dart2js/list_tracer_length_test.dart b/tests/compiler/dart2js/list_tracer_length_test.dart
index 2a48ef50fe658751f4f74bb9d47b2abc3ed2e184..6b039d8d35f51347799d62bd4b232be1ca349dc3 100644
--- a/tests/compiler/dart2js/list_tracer_length_test.dart
+++ b/tests/compiler/dart2js/list_tracer_length_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
const String TEST1 = r"""
@@ -63,8 +64,9 @@ main() {
""";
void checkRangeError(String test, {bool hasRangeError}) {
- String generated = compileAll(test);
- Expect.equals(hasRangeError, generated.contains('ioore'));
+ asyncTest(() => compileAll(test).then((generated) {
+ Expect.equals(hasRangeError, generated.contains('ioore'));
+ }));
}
main() {
« no previous file with comments | « tests/compiler/dart2js/list_tracer2_test.dart ('k') | tests/compiler/dart2js/list_tracer_node_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698