Core: Fix property rename test

This commit is contained in:
Pieter Hijma
2025-07-02 16:34:17 +02:00
committed by Chris Hennes
parent 3515db4a3b
commit 82aad7c104

View File

@@ -278,6 +278,9 @@ TEST_F(RenameProperty, updateExpressionDifferentContainer)
EXPECT_EQ(varSet->getDynamicPropertyByName("Variable"), nullptr);
EXPECT_EQ(varSet->getDynamicPropertyByName("NewName"), prop);
EXPECT_EQ(prop2->getValue(), Value);
// Tear down
_doc->removeObject(varSet2->getNameInDocument());
}
// Tests whether we can rename a property that is used in an expression in a different document
@@ -313,6 +316,9 @@ TEST_F(RenameProperty, updateExpressionDifferentDocument)
EXPECT_EQ(varSet->getDynamicPropertyByName("Variable"), nullptr);
EXPECT_EQ(varSet->getDynamicPropertyByName("NewName"), prop);
EXPECT_EQ(prop2->getValue(), Value);
// Tear down
doc->removeObject(varSet2->getNameInDocument());
}
// Tests whether we can rename a property and undo it