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

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

Issue 326913002: Make dart2js unittests async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. 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/boolify_test.dart
diff --git a/tests/compiler/dart2js/boolify_test.dart b/tests/compiler/dart2js/boolify_test.dart
index d0293790f6ed62d5e5331dcf330b05b9bd5ba7e8..6536386278f12eb60a75fa915752b96e91ae3ba2 100644
--- a/tests/compiler/dart2js/boolify_test.dart
+++ b/tests/compiler/dart2js/boolify_test.dart
@@ -3,7 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
library boolified_operator_test;
-import "package:expect/expect.dart";
+
+import 'package:expect/expect.dart';
+import 'package:async_helper/async_helper.dart';
import 'compiler_helper.dart';
const String TEST = r"""
@@ -15,6 +17,7 @@ foo() {
""";
main() {
- String generated = compile(TEST, entry: 'foo');
- Expect.isTrue(generated.contains('foo() !== true)'));
+ asyncTest(() => compile(TEST, entry: 'foo', check: (String generated) {
+ Expect.isTrue(generated.contains('foo() !== true)'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/boolified_operator_test.dart ('k') | tests/compiler/dart2js/builtin_equals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698