mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 21:03:00 +00:00
live-preview: Always test the property test1
... when testing conversion of properties.
This commit is contained in:
parent
c92960b9d3
commit
f4c4fed393
1 changed files with 4 additions and 2 deletions
|
|
@ -603,9 +603,11 @@ mod tests {
|
|||
fn property_conversion_test(contents: &str, property_line: u32) -> PropertyValue {
|
||||
let (_, pi, _, _) = properties_at_position(contents, property_line, 30).unwrap();
|
||||
|
||||
let test1 = pi.iter().find(|pi| pi.name == "test1").unwrap();
|
||||
|
||||
super::simplify_value(
|
||||
&pi[0].ty,
|
||||
&pi[0].defined_at.as_ref().map(|da| da.code_block_or_expression.clone()),
|
||||
&test1.ty,
|
||||
&test1.defined_at.as_ref().map(|da| da.code_block_or_expression.clone()),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue