implements PLN-0048 minimal system hub pipeline

This commit is contained in:
2026-05-14 13:27:05 +01:00
parent bea3f76aa7
commit 20e8439416
6 changed files with 60 additions and 38 deletions
@@ -343,6 +343,22 @@ mod tests {
assert_eq!(firmware.hub.window_manager.windows.len(), 1);
}
#[test]
fn system_running_ticks_focused_system_app_through_hub_pipeline() {
let mut firmware = Firmware::new(None);
let mut hardware = Hardware::new();
let signals = InputSignals::default();
firmware.load_cartridge(valid_cartridge(AppMode::System));
firmware.tick(&signals, &mut hardware);
let tick_index_before_system_update = firmware.os.tick_index;
firmware.tick(&signals, &mut hardware);
assert!(matches!(firmware.state, FirmwareState::SystemRunning(_)));
assert_eq!(firmware.os.tick_index, tick_index_before_system_update + 1);
}
#[test]
fn load_cartridge_routes_game_apps_to_game_running() {
let mut firmware = Firmware::new(None);