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

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

Issue 709903004: Enhance the Dart unittest library to support multiple invocations in the same application run. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: pkg/unittest/lib/src/test_case.dart
diff --git a/pkg/unittest/lib/src/test_case.dart b/pkg/unittest/lib/src/test_case.dart
index 9f2a6320d1352c3d04d6fb9c6e4017750e0f5bbe..fc84ed7e7d03326f40604371ea788b3abc569808 100644
--- a/pkg/unittest/lib/src/test_case.dart
+++ b/pkg/unittest/lib/src/test_case.dart
@@ -60,9 +60,9 @@ class TestCase {
Completer _testComplete;
TestCase._internal(this.id, this.description, this._testFunction)
- : currentGroup = _currentContext.fullName,
- _setUp = _currentContext.testSetup,
- _tearDown = _currentContext.testTeardown;
+ : currentGroup = _environment.currentContext.fullName,
+ _setUp = _environment.currentContext.testSetup,
+ _tearDown = _environment.currentContext.testTeardown;
bool get isComplete => !enabled || result != null;

Powered by Google App Engine
This is Rietveld 408576698