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

Unified Diff: runtime/observatory/test/debugging_test.dart

Issue 926103002: Add Breakpoint class to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
Index: runtime/observatory/test/debugging_test.dart
diff --git a/runtime/observatory/test/debugging_test.dart b/runtime/observatory/test/debugging_test.dart
index ac6b48c720b8db25aaed46bbcf62eef0c4f05380..070d9952bfd9040cc29c0a23271505e76142c807 100644
--- a/runtime/observatory/test/debugging_test.dart
+++ b/runtime/observatory/test/debugging_test.dart
@@ -57,12 +57,12 @@ var tests = [
// Add the breakpoint.
var script = isolate.rootLib.scripts[0];
- return isolate.addBreakpoint(script, 14).then((ServiceObject bpt) {
- expect(bpt is ServiceMap, isTrue);
- ServiceMap m = bpt;
- expect(m.type, equals('Breakpoint'));
- expect(m['location']['script'].id, equals(script.id));
- expect(m['location']['tokenPos'], equals(51));
+ return isolate.addBreakpoint(script, 14).then((result) {
+ expect(result is Breakpoint, isTrue);
+ Breakpoint bpt = result;
+ expect(bpt.type, equals('Breakpoint'));
+ expect(bpt.script.id, equals(script.id));
+ expect(bpt.tokenPos, equals(51));
expect(isolate.breakpoints.length, equals(1));
return completer.future; // Wait for breakpoint events.
});

Powered by Google App Engine
This is Rietveld 408576698