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

Unified Diff: tests/lib/async/run_zoned6_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_zoned5_test.dart ('k') | tests/lib/async/run_zoned7_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/run_zoned6_test.dart
diff --git a/tests/lib/async/run_zoned6_test.dart b/tests/lib/async/run_zoned6_test.dart
index 9ede7a735fd7984a46ce4d2e1612daad3065a898..34efae57eb74761bcc56361c1cb65bae6e01ae0f 100644
--- a/tests/lib/async/run_zoned6_test.dart
+++ b/tests/lib/async/run_zoned6_test.dart
@@ -11,13 +11,13 @@ main() {
// Ensure that `runZoned`'s onError handles synchronous errors but delegates
// to the top-level when the handler returns false.
try {
- runZonedExperimental(() { throw 0; },
- onError: (e) {
- Expect.equals(0, e);
- if (false) /// 01: runtime error
- asyncEnd();
- throw e; /// 01: runtime error
- });
+ runZoned(() { throw 0; },
+ onError: (e) {
+ Expect.equals(0, e);
+ if (false) /// 01: runtime error
+ asyncEnd();
+ throw e; /// 01: runtime error
+ });
} catch (e) {
// We should never see an error here.
if (false) /// 01: continued
« no previous file with comments | « tests/lib/async/run_zoned5_test.dart ('k') | tests/lib/async/run_zoned7_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698