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

Unified Diff: runtime/observatory/tests/service/causal_async_stack_contents_test.dart

Issue 2694013003: Add tests of line numbers to causal async stack tests (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 | « no previous file | runtime/observatory/tests/service/causal_async_star_stack_contents_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/causal_async_stack_contents_test.dart
diff --git a/runtime/observatory/tests/service/causal_async_stack_contents_test.dart b/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
index 9777993ca9d9bbf0a3271733a2e9e11de55d9391..1433b24a2ffcd99c46743527497a9f12a3de58ae 100644
--- a/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
+++ b/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
@@ -65,6 +65,12 @@ var tests = [
expect(asyncStack[1].toString(), contains('helper'));
expect(asyncStack[2].kind, equals(M.FrameKind.asyncSuspensionMarker));
expect(asyncStack[3].toString(), contains('testMain'));
+ // Line 19.
+ expect(await asyncStack[0].location.toUserString(), contains(':19:'));
hausner 2017/02/15 08:36:54 DBC: you could use string interpolation to avoid t
+ // Line 25.
+ expect(await asyncStack[1].location.toUserString(), contains(':25:'));
+ // Line 30.
+ expect(await asyncStack[3].location.toUserString(), contains(':30:'));
},
];
« no previous file with comments | « no previous file | runtime/observatory/tests/service/causal_async_star_stack_contents_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698