mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 05:37:04 +00:00
Merge branch 'red/rd-dialogs-w6' into area/dialogs-fw
This commit is contained in:
@@ -407,6 +407,12 @@ impl Rows<'_> {
|
||||
grid.kind = kind;
|
||||
}
|
||||
let kind = setup.grid.map_or(grid.kind, |grid| grid.kind);
|
||||
eprintln!(
|
||||
"DIAG the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason: shown {:?} picked {:?} kind {:?}",
|
||||
grid.kind,
|
||||
group.output.value().copied(),
|
||||
kind
|
||||
);
|
||||
let chars = self.count(
|
||||
ui,
|
||||
form,
|
||||
|
||||
@@ -59,6 +59,13 @@ fn the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason() {
|
||||
let pick = |fixture: &mut Fixture, label: &str| {
|
||||
let radio = fixture.by_label(label).unwrap_or_else(|| panic!("the {label} radio"));
|
||||
fixture.click(&radio).settle();
|
||||
let both = (fixture.by_label("Characters per line"), fixture.by_label("Lines per page"));
|
||||
eprintln!(
|
||||
"DIAG the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason: clicked {label} chars disabled {:?} lines disabled {:?} held kind {:?}",
|
||||
both.0.as_ref().map(|f| fixture.tree().is_disabled_key(f.node)),
|
||||
both.1.as_ref().map(|f| fixture.tree().is_disabled_key(f.node)),
|
||||
state.borrow().0.grid.map(|grid| grid.kind)
|
||||
);
|
||||
};
|
||||
assert!(disabled(&fixture, "Characters per line") && disabled(&fixture, "Lines per page"), "no grid: both counts disabled");
|
||||
pick(&mut fixture, "Line grid only");
|
||||
|
||||
Reference in New Issue
Block a user