@@ -49,7 +49,7 @@ void main() {
4949 var bp = await service.addBreakpoint (isolate.id, mainScript.id, 23 );
5050 // Remove breakpoint so it doesn't impact other tests.
5151 await service.removeBreakpoint (isolate.id, bp.id);
52- expect (bp.id, '1' );
52+ expect (bp.id, isNotNull );
5353 });
5454
5555 test ('addBreakpoint on a part file' , () async {
@@ -58,16 +58,20 @@ void main() {
5858 var bp = await service.addBreakpoint (isolate.id, partScript.id, 10 );
5959 // Remove breakpoint so it doesn't impact other tests.
6060 await service.removeBreakpoint (isolate.id, bp.id);
61- expect (bp.id, '2' );
61+ expect (bp.id, isNotNull );
6262 });
6363
6464 test ('addBreakpointAtEntry' , () {
6565 expect (() => service.addBreakpointAtEntry (null , null ),
6666 throwsUnimplementedError);
6767 });
68- test ('addBreakpointWithScriptUri' , () {
69- expect (() => service.addBreakpointWithScriptUri (null , null , null ),
70- throwsUnimplementedError);
68+
69+ test ('addBreakpointWithScriptUri' , () async {
70+ var bp = await service.addBreakpointWithScriptUri (
71+ isolate.id, mainScript.uri, 23 );
72+ // Remove breakpoint so it doesn't impact other tests.
73+ await service.removeBreakpoint (isolate.id, bp.id);
74+ expect (bp.id, isNotNull);
7175 });
7276
7377 test ('removeBreakpoint null arguments' , () {
@@ -95,7 +99,7 @@ void main() {
9599 .lastWhere ((each) => each.uri.contains ('main.dart' ));
96100 var bp = await service.addBreakpoint (isolate.id, refreshedMain.id, 23 );
97101 expect (isolate.breakpoints, [bp]);
98- expect (bp.id, '4' );
102+ expect (bp.id, isNotNull );
99103 await service.removeBreakpoint (isolate.id, bp.id);
100104 expect (isolate.breakpoints, isEmpty);
101105 });
0 commit comments