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..d656faa978f11a9e2e4e9572170b0f2a2c5ae5b9 100644 |
--- a/tests/compiler/dart2js/list_tracer_node_type_test.dart |
+++ b/tests/compiler/dart2js/list_tracer_node_type_test.dart |
@@ -57,28 +57,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)')); |
+ 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)')); |
+ 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)')); |
+ 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)')); |
+ 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')); |
+ compileAll(TEST5).then((generated) { |
+ Expect.isFalse(generated.contains('iae')); |
+ }); |
- generated = compileAll(TEST6); |
- Expect.isFalse(generated.contains('iae')); |
+ compileAll(TEST6).then((generated) { |
+ Expect.isFalse(generated.contains('iae')); |
+ }); |
} |