| Index: pkg/unittest/unittest.dart
|
| ===================================================================
|
| --- pkg/unittest/unittest.dart (revision 12649)
|
| +++ pkg/unittest/unittest.dart (working copy)
|
| @@ -317,7 +317,9 @@
|
| _init(Function callback, Function shouldCallBack, Function isDone,
|
| [expectedCalls = 0]) {
|
| ensureInitialized();
|
| - assert(_currentTest < _tests.length);
|
| + assert(_currentTest >= 0 &&
|
| + _currentTest < _tests.length &&
|
| + _tests[_currentTest] != null);
|
| _callback = callback;
|
| _shouldCallBack = shouldCallBack;
|
| _isDone = isDone;
|
|
|