mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
feat: add tests for slider
This commit is contained in:
parent
5243e8c258
commit
d57088a592
1 changed files with 17 additions and 0 deletions
|
|
@ -96,6 +96,20 @@ pub fn spawn_test() {
|
||||||
}
|
}
|
||||||
Err(e) => log::error!("couldn't get input: {:?}", e),
|
Err(e) => log::error!("couldn't get input: {:?}", e),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 6. human interaction-enabled slider
|
||||||
|
log::info!("testing human interaction-enabled slider");
|
||||||
|
let result = modals.slider(
|
||||||
|
"Human interaction-enabled slider!",
|
||||||
|
0,
|
||||||
|
100,
|
||||||
|
50,
|
||||||
|
).expect("slider test failed");
|
||||||
|
|
||||||
|
modals.show_notification(&format!("Slider value: {}", result), None)
|
||||||
|
.expect("cannot show slider result notification");
|
||||||
|
|
||||||
|
log::info!("slider test done");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -165,6 +179,9 @@ pub fn spawn_test() {
|
||||||
modals.show_image(bm).expect("show image modal failed");
|
modals.show_image(bm).expect("show image modal failed");
|
||||||
log::info!("image modal test done");
|
log::info!("image modal test done");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 6. test that human-interactable slider modal
|
||||||
|
log::info!("testing human interaction-enabled modal");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue