diff --git a/services/modals/src/tests.rs b/services/modals/src/tests.rs index 602ae1618..1be0d6b77 100644 --- a/services/modals/src/tests.rs +++ b/services/modals/src/tests.rs @@ -34,6 +34,16 @@ pub(crate) fn spawn_test() { let modals = modals::Modals::new(&xns).unwrap(); let tt = ticktimer_server::Ticktimer::new().unwrap(); + // 0. multi-modal test + log::info!("modal data: {:#?}", + modals.alert_builder("Four items with maybe defaults. Press select to close.") + .field(Some("first".to_string()), None) + .field(Some("second".to_string()), None) + .field(None, None) + .field(Some("fourth".to_string()), None) + .build() + ); + // 1. test progress bar // The start and end items are deliberately structured to be not zero-indexed; the use of PDDB_LOC is just a // convenient global constant. diff --git a/services/shellchat/src/cmds/ver.rs b/services/shellchat/src/cmds/ver.rs index 294a0e157..8f7f8b515 100644 --- a/services/shellchat/src/cmds/ver.rs +++ b/services/shellchat/src/cmds/ver.rs @@ -5,25 +5,11 @@ use xous_ipc::String; pub struct Ver { } -// TODO: remove me -impl Ver { - fn modal(&self, env: &mut CommonEnv) { - log::info!("modal data: {:#?}", - env.modals.alert_builder("Get Text") - .field(Some("first".to_string()), None) - .field(Some("second".to_string()), None) - .field(None, None) - .field(Some("fourth".to_string()), None) - .build() - ); - } -} impl<'a> ShellCmdApi<'a> for Ver { cmd_api!(ver); // inserts boilerplate for command API fn process(&mut self, args: String::<1024>, env: &mut CommonEnv) -> Result>, xous::Error> { - self.modal(env); use core::fmt::Write; let mut ret = String::<1024>::new(); let helpstring = "ver options: ec, wf200, soc, dna, xous";