mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 07:18:11 +08:00
Adapt the test surface to our wire kind and no-content graphic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user