OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.backend.declarer; | 5 library test.backend.declarer; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'group.dart'; | 9 import 'group.dart'; |
10 import 'invoker.dart'; | 10 import 'invoker.dart'; |
11 import 'metadata.dart'; | 11 import 'metadata.dart'; |
12 import 'test.dart'; | 12 import 'test.dart'; |
13 | 13 |
14 /// A class that manages the state of tests as they're declared. | 14 /// A class that manages the state of tests as they're declared. |
15 /// | 15 /// |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 /// groups or at the top level. | 95 /// groups or at the top level. |
96 void tearDown(callback()) { | 96 void tearDown(callback()) { |
97 if (_group.tearDown != null) { | 97 if (_group.tearDown != null) { |
98 throw new StateError("tearDown() may not be called multiple times for " | 98 throw new StateError("tearDown() may not be called multiple times for " |
99 "the same group."); | 99 "the same group."); |
100 } | 100 } |
101 | 101 |
102 _group.tearDown = callback; | 102 _group.tearDown = callback; |
103 } | 103 } |
104 } | 104 } |
OLD | NEW |