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

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

Issue 1237203002: Insert debug step check at the beginning of a function. (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/test_helper.dart
diff --git a/runtime/observatory/tests/service/test_helper.dart b/runtime/observatory/tests/service/test_helper.dart
index f47f1cd45e9bfbf3778be5e9a793482a222146cf..7cf48caa8684eb44ec4f4fc5d0796f9020e6600d 100644
--- a/runtime/observatory/tests/service/test_helper.dart
+++ b/runtime/observatory/tests/service/test_helper.dart
@@ -155,7 +155,9 @@ Future processServiceEvents(VM vm,
}
-Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) {
+Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) async {
+ await isolate.reload(); // Might have missed pauseEvent.
+
if ((isolate.pauseEvent != null) &&
(isolate.pauseEvent.kind == ServiceEvent.kPauseBreakpoint)) {
// Already waiting at a breakpoint.

Powered by Google App Engine
This is Rietveld 408576698