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

Unified Diff: tests/compiler/dart2js/literal_map_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
« no previous file with comments | « tests/compiler/dart2js/literal_list_test.dart ('k') | tests/compiler/dart2js/logical_expression_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/literal_map_test.dart
diff --git a/tests/compiler/dart2js/literal_map_test.dart b/tests/compiler/dart2js/literal_map_test.dart
index 1b5133679be7b635da37c587bde1a1200c38434a..b2862ea27b241eeaef95f0be5e68409c09504bf1 100644
--- a/tests/compiler/dart2js/literal_map_test.dart
+++ b/tests/compiler/dart2js/literal_map_test.dart
@@ -3,7 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
-import "compiler_helper.dart";
+import 'package:async_helper/async_helper.dart';
+import 'compiler_helper.dart';
const String TEST = """
foo() {
@@ -14,12 +15,13 @@ foo() {
""";
main() {
- String generated = compile(TEST, entry: 'foo');
- // Make sure we have all the type information we need.
- Expect.isFalse(generated.contains('bailout'));
- Expect.isFalse(generated.contains('interceptor'));
- // Make sure we don't go through an interceptor.
- Expect.isTrue(
- generated.contains(r'a.$indexSet(a') ||
- generated.contains(r'.$indexSet(0'));
+ asyncTest(() => compile(TEST, entry: 'foo', check: (String generated) {
+ // Make sure we have all the type information we need.
+ Expect.isFalse(generated.contains('bailout'));
+ Expect.isFalse(generated.contains('interceptor'));
+ // Make sure we don't go through an interceptor.
+ Expect.isTrue(
+ generated.contains(r'a.$indexSet(a') ||
+ generated.contains(r'.$indexSet(0'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/literal_list_test.dart ('k') | tests/compiler/dart2js/logical_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698