mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
ui-panels, ui-shell: tests follow the contract; serde_json for the shell's command trials
This commit is contained in:
Generated
+1
@@ -4405,6 +4405,7 @@ dependencies = [
|
||||
"eframe",
|
||||
"egui",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"web-time",
|
||||
]
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
use craft_behavior::IconId;
|
||||
use craft_ui::buttons::IconButton;
|
||||
use craft_ui::choice::Segmented;
|
||||
use craft_ui::contract::{Bind, Entry, ListDrag, RowAlign, Show as _, ShowContainer as _};
|
||||
use craft_ui::contract::{Bind, Entry, ListDrag, Props as _, RowAlign, Show as _, ShowContainer as _};
|
||||
use craft_ui::layout_components::{Row, Stack};
|
||||
use craft_ui::sections::{DropAction, FooterAction, FooterBar, ReorderableSections, SectionKey, SectionLayout, SectionSpec};
|
||||
use craft_ui::testing::{Fixture, pointer, trial};
|
||||
|
||||
@@ -52,6 +52,7 @@ craft-theme = { workspace = true }
|
||||
craft-ui-test-kit = { workspace = true }
|
||||
craft-window = { workspace = true }
|
||||
egui = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
|
||||
[[test]]
|
||||
name = "it"
|
||||
|
||||
@@ -659,7 +659,7 @@ impl<'a, S> AppShell<'a, S> {
|
||||
if let Some(bar) = bar_extent.filter(|_| !bare) {
|
||||
let target = PlaceTarget { body: regions.body, bar, held };
|
||||
let zone = DropZone::new(ui.layer_id(), regions.body);
|
||||
landed = zone_target::<OptionsBarDrag, _>(ui, ui.id().with("options_place"), zone, &target);
|
||||
landed = zone_target::<OptionsBarDrag, _>(ui, ui.scope_id().with("options_place"), zone, &target);
|
||||
}
|
||||
show_slots(ui, true, app);
|
||||
if let Some(dialogs) = WindowDialogs::existing(ui.ctx(), &window) {
|
||||
|
||||
Reference in New Issue
Block a user