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

Unified Diff: tests/lib/async/future_timeout_test.dart

Issue 130173010: pkg/unittest: Run each test in a Zone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: long line Created 6 years, 11 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
Index: tests/lib/async/future_timeout_test.dart
diff --git a/tests/lib/async/future_timeout_test.dart b/tests/lib/async/future_timeout_test.dart
index cd306450f96d6c942ddc032ba161b262cbeffbb0..d81c87faca48a8686a0457e297932f65057eb6b4 100644
--- a/tests/lib/async/future_timeout_test.dart
+++ b/tests/lib/async/future_timeout_test.dart
@@ -142,6 +142,7 @@ main() {
});
test("timeoutZone", () {
+ var initialZone = Zone.current;
Zone forked;
int registerCallDelta = 0;
bool callbackCalled = false;
@@ -169,7 +170,7 @@ main() {
timedOut.then(expectAsync1((v) {
expect(callbackCalled, true);
expect(registerCallDelta, 0);
- expect(Zone.current, Zone.ROOT);
+ expect(Zone.current, initialZone);
expect(v, 42);
}));
});

Powered by Google App Engine
This is Rietveld 408576698