Chromium Code Reviews
Descriptionpkg/unittest: locking down TestCase
Strip out most of the public API, leaving only read-only properties that might
be interesting for users of unittest.
This class is not designed to be instantiated or reused outside of unitttest.
The only constructor for TestCase makes strict assumptions about the unittest
environment, specifically _currentGroup, _testSetup, _testTeardown.
This enables maximum flexibility to evolve and improve the unittest library
without concern for supporting random use cases invented by 3rd-parties trying to be clever
Before: http://cl.ly/image/41230W032h1d
After: http://cl.ly/image/0K0E2S3g1327
All unittest via ./tools/bots/pub.py -n pub-mac pass
Committed: https://code.google.com/p/dart/source/detail?r=19972
Patch Set 1 #Patch Set 2 : fixed up dartdoc on TestCase and updated copyright year #
Total comments: 1
Patch Set 3 : tweak post runtime fix #Patch Set 4 : ooops with _runningTime setter #Patch Set 5 : fixed to not break other alternative test configurations #
Total comments: 2
Patch Set 6 : fixed up unneeded getter/setter def, too #
Messages
Total messages: 14 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||