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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (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
« no previous file with comments | « tests/compiler/dart2js/list_tracer_length_test.dart ('k') | tests/compiler/dart2js/list_tracer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/list_tracer_node_type_test.dart
diff --git a/tests/compiler/dart2js/list_tracer_node_type_test.dart b/tests/compiler/dart2js/list_tracer_node_type_test.dart
index 93e636ed1268c45f7a67a647fc795160bda2cf4e..aa3e859344381291bfd9745c0fdf5aab0cc7156b 100644
--- a/tests/compiler/dart2js/list_tracer_node_type_test.dart
+++ b/tests/compiler/dart2js/list_tracer_node_type_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import "package:async_helper/async_helper.dart";
import 'compiler_helper.dart';
const String TEST1 = r"""
@@ -57,28 +58,34 @@ main() {
main() {
- String generated = compileAll(TEST1);
- // Check that we only do a null check on the receiver for
- // [: a[0] + 42 :]. We can do a null check because we inferred that
- // the list is of type int or null.
- Expect.isFalse(generated.contains('if (typeof t1'));
- Expect.isTrue(generated.contains('if (t1 == null)'));
+ asyncTest(() => compileAll(TEST1).then((generated) {
+ // Check that we only do a null check on the receiver for
+ // [: a[0] + 42 :]. We can do a null check because we inferred that
+ // the list is of type int or null.
+ Expect.isFalse(generated.contains('if (typeof t1'));
+ Expect.isTrue(generated.contains('if (t1 == null)'));
+ }));
- generated = compileAll(TEST2);
- Expect.isFalse(generated.contains('if (typeof t1'));
- Expect.isTrue(generated.contains('if (t1 == null)'));
+ asyncTest(() => compileAll(TEST2).then((generated) {
+ Expect.isFalse(generated.contains('if (typeof t1'));
+ Expect.isTrue(generated.contains('if (t1 == null)'));
+ }));
- generated = compileAll(TEST3);
- Expect.isFalse(generated.contains('if (typeof t1'));
- Expect.isTrue(generated.contains('if (t1 == null)'));
+ asyncTest(() => compileAll(TEST3).then((generated) {
+ Expect.isFalse(generated.contains('if (typeof t1'));
+ Expect.isTrue(generated.contains('if (t1 == null)'));
+ }));
- generated = compileAll(TEST4);
- Expect.isFalse(generated.contains('if (typeof t1'));
- Expect.isTrue(generated.contains('if (t1 == null)'));
+ asyncTest(() => compileAll(TEST4).then((generated) {
+ Expect.isFalse(generated.contains('if (typeof t1'));
+ Expect.isTrue(generated.contains('if (t1 == null)'));
+ }));
- generated = compileAll(TEST5);
- Expect.isFalse(generated.contains('iae'));
+ asyncTest(() => compileAll(TEST5).then((generated) {
+ Expect.isFalse(generated.contains('iae'));
+ }));
- generated = compileAll(TEST6);
- Expect.isFalse(generated.contains('iae'));
+ asyncTest(() => compileAll(TEST6).then((generated) {
+ Expect.isFalse(generated.contains('iae'));
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/list_tracer_length_test.dart ('k') | tests/compiler/dart2js/list_tracer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698