| Index: pkg/unittest/lib/unittest.dart
|
| diff --git a/pkg/unittest/lib/unittest.dart b/pkg/unittest/lib/unittest.dart
|
| index 9add42c8b1bb6928ae3d3ebb81d4c20faac0975c..a205aa3c9d5e5930a9bdf573bafac2ee03e80c38 100644
|
| --- a/pkg/unittest/lib/unittest.dart
|
| +++ b/pkg/unittest/lib/unittest.dart
|
| @@ -269,13 +269,13 @@ void test(String spec, TestFunction body) {
|
| ensureInitialized();
|
| if (!_soloTestSeen || _soloNestingLevel > 0) {
|
| var testcase = new TestCase._internal(testCases.length + 1, _fullSpec(spec),
|
| - body);
|
| + body);
|
| _testCases.add(testcase);
|
| }
|
| }
|
|
|
| /** Convenience function for skipping a test. */
|
| -void skip_test(String spec, TestFunction body){}
|
| +void skip_test(String spec, TestFunction body) {}
|
|
|
| /**
|
| * Creates a new test case with the given description and body. The
|
| @@ -671,8 +671,7 @@ void _ensureInitialized(bool configAutoStart) {
|
| }
|
|
|
| /** Select a solo test by ID. */
|
| -void setSoloTest(int id) =>
|
| - _testCases.retainWhere((t) => t.id == id);
|
| +void setSoloTest(int id) => _testCases.retainWhere((t) => t.id == id);
|
|
|
| /** Enable/disable a test by ID. */
|
| void _setTestEnabledState(int testId, bool state) {
|
| @@ -713,7 +712,7 @@ bool formatStacks = true;
|
| bool filterStacks = true;
|
|
|
| void _requireNotRunning() {
|
| - if(_currentTestCaseIndex != -1) {
|
| + if (_currentTestCaseIndex != -1) {
|
| throw new StateError('Not allowed when tests are running.');
|
| }
|
| }
|
|
|