mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 11:38:08 +00:00
Remove the T3 diagnostics
This commit is contained in:
@@ -572,13 +572,6 @@ pub(crate) fn finish(ctx: &Context, container: Id, merged: Option<Merged>) {
|
||||
let named = patches.iter().any(|patch| matches!(patch, LabelPatch::LabelledBy { node: id, .. } if *id == node.id));
|
||||
report_unnamed(ctx, node.unnamed.clone().filter(|_| !named));
|
||||
}
|
||||
if label.activated {
|
||||
eprintln!(
|
||||
"DIAG T3 label activated: {:?} nodes {:?}",
|
||||
label.text,
|
||||
scope.nodes.iter().map(|node| (node.id, node.disabled, node.inner_stop.is_some())).collect::<Vec<_>>()
|
||||
);
|
||||
}
|
||||
// A click on a label, as on any form label, moves focus to its one control.
|
||||
if let (true, [only]) = (label.activated, &scope.nodes[..])
|
||||
&& !only.disabled
|
||||
|
||||
@@ -149,14 +149,6 @@ fn declared_actions_are_handled(subject: &Subject) -> Result<(), String> {
|
||||
|| signature(fixture.tree()) != before
|
||||
|| fixture.focused() != focus;
|
||||
if !acted {
|
||||
eprintln!(
|
||||
"DIAG T3 did-nothing: story {} node {:?} name {:?} focus before {focus:?} after {:?} outputs {}",
|
||||
story.name,
|
||||
key,
|
||||
crate::testing::access::name(fixture.tree(), key),
|
||||
fixture.focused(),
|
||||
outputs.len()
|
||||
);
|
||||
return Err(format!("{}: {kind:?} on {:?} did nothing", story.name, fixture.tree().role_of(key)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user