From 955b1dee8139ad1e982422de62766120b3d614e8 Mon Sep 17 00:00:00 2001 From: luap42 Date: Tue, 2 Aug 2022 13:33:52 +0200 Subject: [PATCH] Add test ensuring time consistency (cherry-picked from commit ec7aee0e6044fed08cb757efdf442b0d9ab80505) --- .../instance/testDeleteMorphIsTimeConsistent.st | 7 +++++++ .../AnimationsEditorTest.class/methodProperties.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/testDeleteMorphIsTimeConsistent.st diff --git a/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/testDeleteMorphIsTimeConsistent.st b/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/testDeleteMorphIsTimeConsistent.st new file mode 100644 index 0000000..3ae539d --- /dev/null +++ b/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/testDeleteMorphIsTimeConsistent.st @@ -0,0 +1,7 @@ +testing +testDeleteMorphIsTimeConsistent + | beforeTime afterTime | + beforeTime := self animationsEditorInstance propertyStartEnd endTime. + self animationsEditorInstance deleteMorph. + afterTime := self animationsEditorInstance propertyStartEnd endTime. + self assert: (beforeTime <= afterTime). \ No newline at end of file diff --git a/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/methodProperties.json b/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/methodProperties.json index 76987d5..7a4d61b 100644 --- a/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/methodProperties.json +++ b/packages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/methodProperties.json @@ -12,6 +12,7 @@ "tearDown" : "ob 7/30/2022 17:10", "testDeleteMorphButtonMorphStayedInWorld" : "ob 7/30/2022 17:10", "testDeleteMorphButtonTreeSpecUpdated" : "ob 7/30/2022 17:18", + "testDeleteMorphIsTimeConsistent" : "ps 8/2/2022 13:31", "testGetDeepestMorph" : "MH 8/1/2021 18:40", "testInstanceCreation" : "LW 6/27/2021 13:30", "testMorphClosedInWorldTreeSpecUpdated" : "NR 7/30/2022 16:24",