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

Unified Diff: tests/standalone/debugger/breakpoint_resolved_test.dart

Issue 117133005: Change how debugger handles source breakpoints (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | « runtime/vm/service_test.cc ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/debugger/breakpoint_resolved_test.dart
===================================================================
--- tests/standalone/debugger/breakpoint_resolved_test.dart (revision 31370)
+++ tests/standalone/debugger/breakpoint_resolved_test.dart (working copy)
@@ -13,7 +13,8 @@
}
bar() {
-
+ // Attempt to set breakpoint in this empty line does not
+ // result in a resolved breakpoint.
print("bar");
}
@@ -24,12 +25,10 @@
SetBreakpoint(16),
Resume(),
MatchFrame(0, "main"),
- Resume(),
- MatchFrame(0, "bar"),
- Resume(),
+ Resume(), // Next breakpoint expected in main, when bar() returns.
MatchFrame(0, "main"),
+ // Only two breakpoint resolved events expected.
ExpectEvent("breakpointResolved", {"breakpointId": 1}),
ExpectEvent("breakpointResolved", {"breakpointId": 2}),
- ExpectEvent("breakpointResolved", {"breakpointId": 3}),
Resume(),
];
« no previous file with comments | « runtime/vm/service_test.cc ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698