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

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

Issue 23512008: Call asyncEnd only on success. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/call_site_simple_type_inferer_test.dart
diff --git a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
index b568b199b13456304c6f4627c24117587334e5b8..c31898ba850d0c3f7b6b959b1ff33bf21137e288 100644
--- a/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
+++ b/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart
@@ -16,14 +16,13 @@ void compileAndFind(String code,
bool disableInlining,
check(compiler, element)) {
Uri uri = new Uri(scheme: 'source');
- asyncStart();
var compiler = compilerFor(code, uri);
compiler.disableInlining = disableInlining;
- compiler.runCompiler(uri).then((_) {
+ asyncTest(() => compiler.runCompiler(uri).then((_) {
var cls = findElement(compiler, className);
var member = cls.lookupLocalMember(buildSourceString(memberName));
return check(compiler, member);
- }).whenComplete(() => asyncEnd());
+ }));
}
const String TEST_1 = r"""

Powered by Google App Engine
This is Rietveld 408576698