Chromium Code Reviews| Index: tests/language/src/GenericInstanceof2Test.dart |
| =================================================================== |
| --- tests/language/src/GenericInstanceof2Test.dart (revision 7030) |
| +++ tests/language/src/GenericInstanceof2Test.dart (working copy) |
| @@ -27,7 +27,7 @@ |
| } |
| } |
| -main () { |
| +testAll () { |
| var foo_int_num = new Foo<int, num>(); |
| Expect.isTrue(foo_int_num is Foo<int, num>); |
| Expect.isTrue(foo_int_num is !Foo<int, String>); |
| @@ -56,3 +56,11 @@ |
| Expect.isTrue(moo_raw.MooString() is !Moo<int, num>); |
| Expect.isTrue(moo_raw.MooString() is Moo<int, String>); |
| } |
| + |
| + |
| +main() { |
| + // Repeat type checks so that inlined tests can be tested as well. |
|
regis
2012/04/26 19:02:49
Why not just
testAll();
testAll();
?
srdjan
2012/04/26 19:53:17
Discussed, leaving it to 5 for future multi-stage
|
| + for (int i = 0; i < 5; i++) { |
| + testAll(); |
| + } |
| +} |