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

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

Issue 17672002: Add runAsync interceptor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 6 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 | « sdk/lib/async/zone.dart ('k') | tests/lib/async/intercept_run_async2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/intercept_run_async1_test.dart
diff --git a/tests/lib/async/run_zoned1_test.dart b/tests/lib/async/intercept_run_async1_test.dart
similarity index 56%
copy from tests/lib/async/run_zoned1_test.dart
copy to tests/lib/async/intercept_run_async1_test.dart
index 71af2346c69ce7add4f4f8c5b030b2ca02385c73..c2bc9c18c5f2052d5aeff50286a0567a69d61bf0 100644
--- a/tests/lib/async/run_zoned1_test.dart
+++ b/tests/lib/async/intercept_run_async1_test.dart
@@ -6,6 +6,10 @@ import "package:expect/expect.dart";
import 'dart:async';
main() {
- // Make sure `runZoned` returns the result of a synchronous call.
- Expect.equals(499, runZonedExperimental(() => 499));
+ // Test that runZoned returns the result of executing the body.
+ var result = runZonedExperimental(() => 499,
+ onRunAsync: (f) {
+ Expect.fail("Unexpected invocation.");
+ });
+ Expect.equals(499, result);
}
« no previous file with comments | « sdk/lib/async/zone.dart ('k') | tests/lib/async/intercept_run_async2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698