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

Unified Diff: tests/compiler/dart2js/analyze_only_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/analyze_only_test.dart
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart
index 67bbeb8d4f7330e699c5372133d410b932df3ca5..818149aca185b239e59d535d8377fffd21493472 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -45,7 +45,7 @@ runCompiler(String main, List<String> options,
onValue(code, errors, warnings);
}, onError: (e) {
throw 'Compilation failed';
- }).whenComplete(() => asyncEnd());
+ }).then(asyncSuccess);
}
main() {
« no previous file with comments | « tests/compiler/dart2js/analyze_all_test.dart ('k') | tests/compiler/dart2js/async_compiler_input_provider_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698