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

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

Issue 87283003: Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed tests. Created 7 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: tests/lib/async/zone_empty_description_test.dart
diff --git a/tests/lib/async/zone_empty_description_test.dart b/tests/lib/async/zone_empty_description_test.dart
index 1a35dc0ea99b9294d92b90172b47619c4cc70fdd..30e494f20f9dd384ad8a2a7695d5b7174ff81783 100644
--- a/tests/lib/async/zone_empty_description_test.dart
+++ b/tests/lib/async/zone_empty_description_test.dart
@@ -51,8 +51,7 @@ testForkedZone(Zone forked) {
asyncStart();
bool asyncDidRun = false;
forked.scheduleMicrotask(() {
- // The scheduleMicrotask functions on the Zone don't bind the closures.
- Expect.identical(Zone.ROOT, Zone.current);
+ Expect.identical(forked, Zone.current);
asyncDidRun = true;
asyncEnd();
});
@@ -62,8 +61,7 @@ testForkedZone(Zone forked) {
asyncStart();
bool timerDidRun = false;
forked.createTimer(const Duration(milliseconds: 0), () {
- // The createTimer functions on the Zone don't bind the closures.
- Expect.identical(Zone.ROOT, Zone.current);
+ Expect.identical(forked, Zone.current);
timerDidRun = true;
asyncEnd();
});

Powered by Google App Engine
This is Rietveld 408576698