The new test suite 'analyze_tests' will run the analyzer on the
selected tests, and fail if there are static type errors. Currently
only the tests in tests/standalone are included, but that can easily
be expanded.
The reason for starting this was that for M4 we where missing two
'part' files in io.dart (for the HttpBody utility class). This caused
the use of HttpBody in the editor to be complicated. With static type
checking on the tests which tested HttpBody this mistake would have
been caught.
R=ager@google.com, ricow@google.com, kustermann@google.com, ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//14436004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21944 260f80e4-7a28-3924-810f-c04153c831b5
introduce static type warnings in certain dart libraries.
I wanted this for dart:io and might as well add it for the other
libraries that have no warnings when analyzed.
This required a bit of test script reworking. dartc used a leading
hash in a file to determine if it was a test. That is now broken
and has been removed. This also allowed me to override the
readOptionsFromFile method in test suites so that certain analyzer
test suites can require all tests to be static clean.
R=ricow@google.com,kustermann@google.com,sgjesse@google.com,danrubel@google.com
BUG=
Review URL: https://codereview.chromium.org//12475004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19597 260f80e4-7a28-3924-810f-c04153c831b5