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

Side by Side Diff: tests/language/vm/async_await_catch_stacktrace_test.dart

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/vm_sources.gypi ('k') | tests/language/vm/causal_async_exception_stack_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 7
8 void main() { 8 void main() {
9 x() async { 9 x() async {
10 print("Starting!"); 10 print("Starting!");
(...skipping 25 matching lines...) Expand all
36 // #8 _Completer.completeError (dart:async/future_impl.dart:27:5) 36 // #8 _Completer.completeError (dart:async/future_impl.dart:27:5)
37 // #9 runAsync.async_op (this file) 37 // #9 runAsync.async_op (this file)
38 // #10 Future.Future.microtask.<anonymous closure> (dart:async/future. dart:184:26) 38 // #10 Future.Future.microtask.<anonymous closure> (dart:async/future. dart:184:26)
39 // #11 _microtaskLoop (dart:async/schedule_microtask.dart:41:5) 39 // #11 _microtaskLoop (dart:async/schedule_microtask.dart:41:5)
40 // #12 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) 40 // #12 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
41 // #13 _runPendingImmediateCallback (dart:isolate:1054:5) 41 // #13 _runPendingImmediateCallback (dart:isolate:1054:5)
42 // #14 _RawReceivePortImpl._handleMessage (dart:isolate:1104:5) 42 // #14 _RawReceivePortImpl._handleMessage (dart:isolate:1104:5)
43 43
44 Expect.isFalse(stText.contains("propagateToListeners")); 44 Expect.isFalse(stText.contains("propagateToListeners"));
45 Expect.isFalse(stText.contains("_completeError")); 45 Expect.isFalse(stText.contains("_completeError"));
46 Expect.isFalse(stText.contains("main"));
47 } 46 }
48 print("Ending!"); 47 print("Ending!");
49 } 48 }
50 49
51 asyncStart(); 50 asyncStart();
52 x().then((_) => asyncEnd()); 51 x().then((_) => asyncEnd());
53 } 52 }
54 53
55 runAsync() async { 54 runAsync() async {
56 throw 'oh no!'; 55 throw 'oh no!';
57 } 56 }
OLDNEW
« no previous file with comments | « runtime/vm/vm_sources.gypi ('k') | tests/language/vm/causal_async_exception_stack_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698