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

Unified Diff: pkg/unittest/lib/src/config.dart

Issue 12335113: Unit test changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/expect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/config.dart
===================================================================
--- pkg/unittest/lib/src/config.dart (revision 19164)
+++ pkg/unittest/lib/src/config.dart (working copy)
@@ -52,6 +52,8 @@
* a test suite.
*/
void onTestStart(TestCase testCase) {
+ assert(testCase != null);
+ assert(_currentTestCase == null);
_currentTestCase = testCase;
}
@@ -60,6 +62,8 @@
* a test suite.
*/
void onTestResult(TestCase testCase) {
+ assert(testCase != null);
+ assert(_currentTestCase == null || _currentTestCase == testCase);
_currentTestCase = null;
}
« no previous file with comments | « pkg/unittest/lib/html_enhanced_config.dart ('k') | pkg/unittest/lib/src/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698