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

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

Issue 14092004: Chaining of setup/teardown. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/scheduled_test/test/scheduled_test/set_up_test.dart ('k') | pkg/unittest/lib/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/test_case.dart
===================================================================
--- pkg/unittest/lib/src/test_case.dart (revision 21816)
+++ pkg/unittest/lib/src/test_case.dart (working copy)
@@ -61,9 +61,9 @@
Completer _testComplete;
TestCase._internal(this.id, this.description, this.testFunction)
- : currentGroup = _currentGroup,
- setUp = _testSetup,
- tearDown = _testTeardown;
+ : currentGroup = _currentContext.groupName,
+ setUp = _currentContext.testSetup,
+ tearDown = _currentContext.testTeardown;
bool get isComplete => !enabled || result != null;
« no previous file with comments | « pkg/scheduled_test/test/scheduled_test/set_up_test.dart ('k') | pkg/unittest/lib/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698