@@ -406,57 +406,41 @@ void main() {
406
406
file: mainFile,
407
407
breakpointMarker: capturedStringMarker,
408
408
);
409
- print ('added breakpoint' );
410
409
411
410
final oldLog = "log('\$ mainValue');" ;
412
411
final newLog = "log('\$ {closure()}');" ;
413
412
await makeEditAndRecompile (mainFile, oldLog, newLog);
414
- print ('recompiled' );
415
413
416
414
bp =
417
415
(await hotReloadAndHandlePausePost ([
418
416
(file: mainFile, breakpointMarker: capturedStringMarker, bp: bp),
419
417
])).first;
420
418
421
- print ('hot reload and handled pausepost' );
422
-
423
419
final breakpointFuture = waitForBreakpoint ();
424
420
425
421
await callEvaluate ();
426
422
427
- print ('called evaluate' );
428
-
429
423
// Should break at `capturedString`.
430
424
await breakpointFuture;
431
-
432
- print ('waited for breakpoint' );
433
425
final oldCapturedString = 'captured closure gen0' ;
434
426
expect (consoleLogs.contains (oldCapturedString), false );
435
427
// Closure gets evaluated for the first time.
436
428
await resumeAndExpectLog (oldCapturedString);
437
429
438
- print ('resumed and got log' );
439
-
440
430
final newCapturedString = 'captured closure gen1' ;
441
431
await makeEditAndRecompile (
442
432
mainFile,
443
433
oldCapturedString,
444
434
newCapturedString,
445
435
);
446
436
447
- print ('made edit again and recompiled' );
448
-
449
437
await hotReloadAndHandlePausePost ([
450
438
(file: mainFile, breakpointMarker: capturedStringMarker, bp: bp),
451
439
]);
452
440
453
- print ('hot reloaded again and handled pause post' );
454
-
455
441
// Breakpoint should not be hit as it's now deleted. We should also see
456
442
// the old string still as the closure has not been reevaluated.
457
443
await callEvaluateAndExpectLog (oldCapturedString);
458
-
459
- print ('handled evaluate again and got log' );
460
444
});
461
445
}, timeout: Timeout .factor (2 ));
462
446
0 commit comments