Pass app.started events to the DAP client + dart.debuggerUris for Profile mode (#106337)

This commit is contained in:
Danny Tuppeny
2022-06-21 20:09:06 +01:00
committed by GitHub
parent 3c548dd887
commit e2ef8cfe44
3 changed files with 49 additions and 7 deletions

View File

@@ -302,6 +302,24 @@ void main() {
await dap.client.terminate();
});
testWithoutContext('provides appStarted events to the client', () async {
final BasicProject project = BasicProject();
await project.setUpIn(tempDir);
// Launch the app and wait for it to send a 'flutter.appStarted' event.
await Future.wait(<Future<void>>[
dap.client.event('flutter.appStarted'),
dap.client.start(
launch: () => dap.client.launch(
cwd: project.dir.path,
toolArgs: <String>['-d', 'flutter-tester'],
),
),
], eagerError: true);
await dap.client.terminate();
});
});
group('attach', () {