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

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

Issue 326913002: Make dart2js unittests async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/licm_test.dart
diff --git a/tests/compiler/dart2js/licm_test.dart b/tests/compiler/dart2js/licm_test.dart
index 3e1a98ad39094060c8d47267e76cd65e50ec1ec2..438d1743bfeb725b23ed718fa41ae55aefb9e151 100644
--- a/tests/compiler/dart2js/licm_test.dart
+++ b/tests/compiler/dart2js/licm_test.dart
@@ -5,8 +5,7 @@
// Check that we hoist instructions in a loop condition, even if that
// condition involves control flow.
-import 'package:expect/expect.dart';
-
+import 'package:async_helper/async_helper.dart';
import 'compiler_helper.dart';
const String TEST = '''
@@ -25,6 +24,6 @@ main() {
''';
main() {
- compileAndMatch(TEST, 'main',
- new RegExp('if \\(typeof count !== "number"\\)(.|\\n)*while'));
+ asyncTest(() => compileAndMatch(TEST, 'main',
+ new RegExp('if \\(typeof count !== "number"\\)(.|\\n)*while')));
}

Powered by Google App Engine
This is Rietveld 408576698