OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library unittest.test_case; | 5 library unittest.test_case; |
6 | 6 |
7 import '../unittest.dart'; | 7 import '../unittest.dart'; |
8 | 8 |
9 /// An individual unit test. | 9 /// An individual unit test. |
10 abstract class TestCase { | 10 abstract class TestCase { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Duration get runningTime; | 46 Duration get runningTime; |
47 | 47 |
48 /// Whether this test is enabled. | 48 /// Whether this test is enabled. |
49 /// | 49 /// |
50 /// Disabled tests won't be run. | 50 /// Disabled tests won't be run. |
51 bool get enabled; | 51 bool get enabled; |
52 | 52 |
53 /// Whether this test case has finished running. | 53 /// Whether this test case has finished running. |
54 bool get isComplete => !enabled || result != null; | 54 bool get isComplete => !enabled || result != null; |
55 } | 55 } |
OLD | NEW |