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

Unified Diff: tests/language/vm/causal_async_exception_stack_test.dart

Issue 2694213002: Revert "Improvements to causal async stack traces" (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/vm/causal_async_exception_stack2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/causal_async_exception_stack_test.dart
diff --git a/tests/language/vm/causal_async_exception_stack_test.dart b/tests/language/vm/causal_async_exception_stack_test.dart
index ed4147fd2760cd16265ec4ebd8e6776188db5c9f..5e8eee0061fb72b969dfb62e854af83bdae0f8a2 100644
--- a/tests/language/vm/causal_async_exception_stack_test.dart
+++ b/tests/language/vm/causal_async_exception_stack_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -24,52 +24,18 @@ foo() async {
}
main() async {
- // Test async and async*.
try {
await foo();
} catch (e, st) {
expect(st.toString(), stringContainsInOrder([
+ 'thrower.<thrower_async_body>',
+ '<asynchronous suspension>',
'thrower',
+ 'generator.<generator_async_gen_body>',
'<asynchronous suspension>',
'generator',
+ 'foo.<foo_async_body>',
'<asynchronous suspension>',
- 'foo',
- '<asynchronous suspension>',
- 'main',
]));
}
-
- inner() async {
- deep() async {
- await thrower();
- }
- await deep();
- }
-
- // Test inner functions.
- try {
- await inner();
- } catch (e, st) {
- expect(st.toString(), stringContainsInOrder([
- 'thrower',
- '<asynchronous suspension>',
- 'main.inner.deep',
- '<asynchronous suspension>',
- 'main.inner',
- '<asynchronous suspension>',
- 'main',
- '<asynchronous suspension>',
- ]));
- }
-
- // Test for correct linkage.
- try {
- await thrower();
- } catch(e, st) {
- expect(st.toString(), stringContainsInOrder([
- 'thrower',
- '<asynchronous suspension>',
- 'main',
- ]));
- }
}
« no previous file with comments | « tests/language/vm/causal_async_exception_stack2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698