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

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

Issue 1241673003: Async-step, first cut. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
Index: runtime/observatory/tests/service/break_on_function_test.dart
diff --git a/runtime/observatory/tests/service/break_on_function_test.dart b/runtime/observatory/tests/service/break_on_function_test.dart
index bbe907922a591177a04c28f0e3ee41f839952104..1988578679b9479595be6955ee6a176454dd83bc 100644
--- a/runtime/observatory/tests/service/break_on_function_test.dart
+++ b/runtime/observatory/tests/service/break_on_function_test.dart
@@ -40,31 +40,11 @@ hasStoppedAtBreakpoint,
resumeIsolate,
hasStoppedAtBreakpoint,
-
-// We are at the breakpoint on line 11.
-(Isolate isolate) async {
- ServiceMap stack = await isolate.getStack();
- expect(stack.type, equals('Stack'));
- expect(stack['frames'].length, greaterThanOrEqualTo(1));
-
- Script script = stack['frames'][0].location.script;
- expect(stack['frames'][0].location.tokenPos, equals(22));
-},
-
+stoppedAtLine(11),
resumeIsolate,
hasStoppedAtBreakpoint,
-
-// We are at the breakpoint on line 11.
-(Isolate isolate) async {
- ServiceMap stack = await isolate.getStack();
- expect(stack.type, equals('Stack'));
- expect(stack['frames'].length, greaterThanOrEqualTo(1));
-
- Script script = stack['frames'][0].location.script;
- expect(stack['frames'][0].location.tokenPos, equals(22));
-},
-
+stoppedAtLine(11),
resumeIsolate,
];
« no previous file with comments | « runtime/observatory/tests/service/async_step_test.dart ('k') | runtime/observatory/tests/service/command_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698