Adapt the test surface to our wire kind and no-content graphic

This commit is contained in:
Dennis Kobert
2026-09-08 17:41:29 +00:00
parent 33b20d6329
commit a593430e38
3 changed files with 9 additions and 13 deletions
@@ -4354,8 +4354,9 @@ mod document_message_handler_tests {
let phantom_count = news
.iter()
.flat_map(|new| new.iter_element_values())
.filter(|graphic| matches!(graphic, graphene_std::Graphic::None(_)))
// Our no-content graphic is an empty list rather than master's dedicated None variant
.filter(|graphic| graphic.is_empty())
.count();
assert_eq!(phantom_count, 0, "No stacked element should be a phantom None graphic");
assert_eq!(phantom_count, 0, "No stacked element should be a phantom empty graphic");
}
}
@@ -2921,7 +2921,8 @@ mod tests {
#[test]
fn removed_definition_swap_targets_resolve() {
assert!(resolve_proto_node_type(graphene_std::ops::passthrough::IDENTIFIER).is_some());
assert!(resolve_proto_node_type(graphene_std::platform_application_io::upload_texture::IDENTIFIER).is_some());
#[cfg(feature = "gpu")]
assert!(resolve_proto_node_type(wgpu_executor::texture_conversion::upload_texture::IDENTIFIER).is_some());
}
// Migrating a Merge network's coercion nodes by alias would leave a reducer in the primary slot, so every alias must reset instead