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

Unified Diff: tests/compiler/dart2js/bad_loop_test.dart

Issue 23512008: Call asyncEnd only on success. (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/bad_loop_test.dart
diff --git a/tests/compiler/dart2js/bad_loop_test.dart b/tests/compiler/dart2js/bad_loop_test.dart
index 65629a453e8fb1bac366d2f252aec162f166f61e..8a86fd6c17383b331f94bf7d6c06e930ce29e820 100644
--- a/tests/compiler/dart2js/bad_loop_test.dart
+++ b/tests/compiler/dart2js/bad_loop_test.dart
@@ -37,12 +37,11 @@ main() {
libraryRoot,
packageRoot,
['--analyze-only']);
- asyncStart();
- compiler.run(Uri.parse('memory:main.dart')).then((_) {
+ asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
Expect.isTrue(compiler.compilationFailed);
Expect.equals(5, errorCount);
Expect.equals(1, warningCount);
- }).whenComplete(() => asyncEnd());
+ }));
}
const Map MEMORY_SOURCE_FILES = const {

Powered by Google App Engine
This is Rietveld 408576698