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 ad06034b92ae3b0ba553d8598d4b82747f0e7aec..4ab9e4ab9cc9d878d2719a56504bdd599d36d4cc 100644 |
--- a/tests/compiler/dart2js/list_tracer_node_type_test.dart |
+++ b/tests/compiler/dart2js/list_tracer_node_type_test.dart |
@@ -39,22 +39,26 @@ 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)')); |
- |
- generated = compileAll(TEST2); |
- 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)')); |
- |
- generated = compileAll(TEST4); |
- Expect.isFalse(generated.contains('if (typeof t1')); |
- Expect.isTrue(generated.contains('if (t1 == null)')); |
+ 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)')); |
+ }); |
+ |
+ compileAll(TEST2).then((generated) { |
+ Expect.isFalse(generated.contains('if (typeof t1')); |
+ Expect.isTrue(generated.contains('if (t1 == null)')); |
+ }); |
+ |
+ compileAll(TEST3).then((generated) { |
+ Expect.isFalse(generated.contains('if (typeof t1')); |
+ Expect.isTrue(generated.contains('if (t1 == null)')); |
+ }); |
+ |
+ compileAll(TEST4).then((generated) { |
+ Expect.isFalse(generated.contains('if (typeof t1')); |
+ Expect.isTrue(generated.contains('if (t1 == null)')); |
+ }); |
} |