Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(828)

Unified Diff: pkg/unittest/unittest.dart

Issue 10968040: Eliminate some of the flakiness in testing: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/test_controller.js ('k') | tools/testing/run_selenium.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/unittest/test_controller.js ('k') | tools/testing/run_selenium.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698