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

Unified Diff: lib/src/invoker.dart

Issue 918853005: Get new tests working on dart2js. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 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 | « .status ('k') | test/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/invoker.dart
diff --git a/lib/src/invoker.dart b/lib/src/invoker.dart
index 5950500d814714204e3ad205fbaf6821e9c45c6c..4d14b48d6bf3ccf05ac8962eab502fd42af28af4 100644
--- a/lib/src/invoker.dart
+++ b/lib/src/invoker.dart
@@ -69,7 +69,10 @@ class Invoker {
/// The current invoker, or `null` if none is defined.
///
/// An invoker is only set within the zone scope of a running test.
- static Invoker get current => Zone.current[#unittest._invoker];
+ static Invoker get current {
+ // TODO(nweiz): Use a private symbol when dart2js supports it (issue 17526).
+ return Zone.current[#unittest.invoker];
+ }
Invoker._(Suite suite, LocalTest test) {
_controller = new LiveTestController(suite, test, _onRun);
@@ -171,7 +174,7 @@ class Invoker {
new State(Status.complete, liveTest.state.result));
_controller.completer.complete();
});
- }, zoneValues: {#unittest._invoker: this}, onError: handleError);
+ }, zoneValues: {#unittest.invoker: this}, onError: handleError);
});
}
}
« no previous file with comments | « .status ('k') | test/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698