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

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

Issue 23875032: Expose Zones. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 3 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 | « tests/lib/async/run_zoned8_test.dart ('k') | tests/lib/async/zone_bind_callback_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/run_zoned9_test.dart
diff --git a/tests/lib/async/run_zoned9_test.dart b/tests/lib/async/run_zoned9_test.dart
index ab0f5ab17c0712fb6400aff5062e0cf7b653518d..fab0da38a43590b9e7f9cef5abacc2aebc09b793 100644
--- a/tests/lib/async/run_zoned9_test.dart
+++ b/tests/lib/async/run_zoned9_test.dart
@@ -12,13 +12,13 @@ main() {
// to the next runZonedExperimental when the handler returns false.
bool sawInnerHandler = false;
try {
- runZonedExperimental(() {
- runZonedExperimental(() { throw 0; },
- onError: (e) {
- Expect.equals(0, e);
- sawInnerHandler = true;
- throw e;
- });
+ runZoned(() {
+ runZoned(() { throw 0; },
+ onError: (e) {
+ Expect.equals(0, e);
+ sawInnerHandler = true;
+ throw e;
+ });
}, onError: (e) {
Expect.equals(0, e);
Expect.isTrue(sawInnerHandler);
« no previous file with comments | « tests/lib/async/run_zoned8_test.dart ('k') | tests/lib/async/zone_bind_callback_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698