Index: tests/lib/async/stack_trace02_test.dart |
diff --git a/tests/lib/async/zone_root_bind_test.dart b/tests/lib/async/stack_trace02_test.dart |
similarity index 60% |
copy from tests/lib/async/zone_root_bind_test.dart |
copy to tests/lib/async/stack_trace02_test.dart |
index 7b73f9851514f2a7bab8e72825cb6d4626bb15b5..19f5d76a34190bf829dba82873fd5ca57c3bc9a4 100644 |
--- a/tests/lib/async/zone_root_bind_test.dart |
+++ b/tests/lib/async/stack_trace02_test.dart |
@@ -7,12 +7,12 @@ import 'package:async_helper/async_helper.dart'; |
import 'dart:async'; |
main() { |
- Expect.identical(Zone.ROOT, Zone.current); |
- Zone forked = Zone.current.fork(); |
- var f = Zone.current.bindCallback(() { |
- Expect.identical(Zone.ROOT, Zone.current); |
- }, runGuarded: false); |
- forked.run(() { |
- f(); |
+ StackTrace trace; |
+ asyncStart(); |
+ var f = new Future(() { throw "foo"; }); |
+ f.catchError((e, st) { |
+ Expect.equals("foo", e); |
+ Expect.isNotNull(st); |
+ asyncEnd(); |
}); |
-} |
+} |