| Index: pkg/unittest/lib/src/test_case.dart
|
| diff --git a/pkg/unittest/lib/src/test_case.dart b/pkg/unittest/lib/src/test_case.dart
|
| index 50274637aa57ab27a766ee62e5c0b8c5c795b7a8..d4802ea8ce1b6d36ac72afa8621c8471e3ddc095 100644
|
| --- a/pkg/unittest/lib/src/test_case.dart
|
| +++ b/pkg/unittest/lib/src/test_case.dart
|
| @@ -57,7 +57,9 @@ class TestCase {
|
| Duration _runningTime;
|
| Duration get runningTime => _runningTime;
|
|
|
| - bool enabled = true;
|
| + bool _enabled = true;
|
| +
|
| + bool get enabled => _enabled;
|
|
|
| bool _doneTeardown = false;
|
|
|
| @@ -76,9 +78,9 @@ class TestCase {
|
| }
|
| if (result == null || result == PASS) {
|
| if (e is TestFailure) {
|
| - fail("$e", stack);
|
| + _fail("$e", stack);
|
| } else {
|
| - error("$stage failed: Caught $e", stack);
|
| + _error("$stage failed: Caught $e", stack);
|
| }
|
| }
|
| };
|
| @@ -160,11 +162,11 @@ class TestCase {
|
| }
|
| }
|
|
|
| - void pass() {
|
| + void _pass() {
|
| _complete(PASS);
|
| }
|
|
|
| - void fail(String messageText, [StackTrace stack]) {
|
| + void _fail(String messageText, [StackTrace stack]) {
|
| if (result != null) {
|
| String newMessage = (result == PASS)
|
| ? 'Test failed after initially passing: $messageText'
|
| @@ -176,13 +178,13 @@ class TestCase {
|
| }
|
| }
|
|
|
| - void error(String messageText, [StackTrace stack]) {
|
| + void _error(String messageText, [StackTrace stack]) {
|
| _complete(ERROR, messageText, stack);
|
| }
|
|
|
| void _markCallbackComplete() {
|
| if (--_callbackFunctionsOutstanding == 0 && !isComplete) {
|
| - pass();
|
| + _pass();
|
| }
|
| }
|
|
|
|
|