49f36b0b2d
This is a reland of7419667d67I reverted this CL in https://dart-review.googlesource.com/c/sdk/+/77520 because I thought it had broken a bunch of bots. It turns out that the bots weren't broken; they were just erroneously reporting a breakage because some change-detection code had noticed that there were new failing tests, and there is not yet a way to tell the change-detection code that the failures are expected. Original change's description: > Test that the result of instantiate-to-bounds is appropriately checked for super-boundedness. > > When I implemented super-boundedness for the analyzer in >b1a54154f8, very little test status > changed, indicating we didn't have much test coverage for verifying > that the result of instantiate-to-bounds was appropriately checked for > super-boundedness. This CL fills in the coverage gap. > > Change-Id: I8f6fbb3aa4cae1e62861b5eddb113ee9b4bb085c > Reviewed-on: https://dart-review.googlesource.com/77010 > Commit-Queue: Paul Berry <paulberry@google.com> > Auto-Submit: Paul Berry <paulberry@google.com> > Reviewed-by: Erik Ernst <eernst@google.com> Change-Id: Ic84321e928aaf4c6533e6cf5b9d521a1da77dba7 Reviewed-on: https://dart-review.googlesource.com/c/77660 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
Run Existing Tests ================== See the output of ../tools/test.py --help for how to run tests. See also https://code.google.com/p/dart/wiki/Building#Testing for detailed examples. Create New Tests ================ See comments above factory StandardTestSuite.forDirectory in ../tools/testing/dart/test_suite.dart for the default test directory layout. By default test-file names must end in "_test.dart", but some test suites, such as ./co19, subclass StandardTestSuite and override this default. See comments at the beginning of ../tools/testing/dart/multitest.dart for how to create tests that pass by failing with a known error. For example, ... int x = "not an int"; /// 01: static type warning ... as part of a test will only pass the "--compiler dart2analyzer" test if the assignment generates a static type warning.