-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
3 changes: 3 additions & 0 deletions
3
....package/AnimationsEditorTogglePropertiesTest.class/instance/animationsEditorInstance..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
animationsEditorInstance: anObject | ||
animationsEditorInstance := anObject |
3 changes: 3 additions & 0 deletions
3
...s.package/AnimationsEditorTogglePropertiesTest.class/instance/animationsEditorInstance.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
animationsEditorInstance | ||
^ animationsEditorInstance |
4 changes: 4 additions & 0 deletions
4
...Editor-Tests.package/AnimationsEditorTogglePropertiesTest.class/instance/dummyProperty.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dummy property | ||
dummyProperty | ||
|
||
^ self animationsEditorInstance propertyList first subproperties at: 'position'. |
9 changes: 9 additions & 0 deletions
9
...imationsEditor-Tests.package/AnimationsEditorTogglePropertiesTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
running | ||
setUp | ||
|
||
| morph | | ||
super setUp. | ||
self animationsEditorInstance: AnimationsEditor open. | ||
morph := Morph new openInWorld. | ||
self animationsEditorInstance addTargetMorph: morph. | ||
self animationsEditorInstance selectedTreeNode: self dummyProperty. |
8 changes: 8 additions & 0 deletions
8
...tionsEditor-Tests.package/AnimationsEditorTogglePropertiesTest.class/instance/tearDown.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
running | ||
tearDown | ||
| targetMorph | | ||
super tearDown. | ||
targetMorph := (self animationsEditorInstance propertyList first) targetMorph. | ||
targetMorph isFlexed ifTrue: [targetMorph owner abandon]. "removes FlexShell" | ||
targetMorph abandon. | ||
self animationsEditorInstance windowReference abandon. |
13 changes: 13 additions & 0 deletions
13
...imationsEditorTogglePropertiesTest.class/instance/testKeyframeAddedToActivatedProperty.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
testing | ||
testKeyframeAddedToActivatedProperty | ||
| property keyPreexists| | ||
|
||
property := self animationsEditorInstance selectedTreeNode. | ||
property activateProperty. | ||
keyPreexists := property targetValues at: 500 ifAbsent: [false]. | ||
property | ||
positionX: 555; | ||
positionY: 555; | ||
frame: 500. | ||
self animationsEditorInstance addKeyframe. | ||
self assert: ((property targetValues at: 500) notNil and: keyPreexists not). |
12 changes: 12 additions & 0 deletions
12
...gglePropertiesTest.class/instance/testKeyframesDeteledFromTrackWhenPropertyDeactivated.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing | ||
testKeyframesDeteledFromTrackWhenPropertyDeactivated | ||
| property | | ||
|
||
property := self animationsEditorInstance selectedTreeNode. | ||
property activateProperty. | ||
property | ||
positionX: 555; | ||
positionY: 555; | ||
frame: 500. | ||
self animationsEditorInstance addKeyframe. | ||
property deactivateProperty. self assert: (property targetValues at: 500 ifAbsent: true). |
7 changes: 7 additions & 0 deletions
7
...e/AnimationsEditorTogglePropertiesTest.class/instance/testNoActivatedPropertiesOnStart.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
testing | ||
testNoActivatedPropertiesOnStart | ||
| allSubpropertiesDeactivated | | ||
|
||
allSubpropertiesDeactivated := true. | ||
self animationsEditorInstance propertyList first subproperties do: [:property | property isActivated ifTrue: [allSubpropertiesDeactivated := true.].]. | ||
self assert: allSubpropertiesDeactivated. |
12 changes: 12 additions & 0 deletions
12
...ionsEditorTogglePropertiesTest.class/instance/testNoKeyframeAddedToDeactivatedProperty.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
testing | ||
testNoKeyframeAddedToDeactivatedProperty | ||
| property | | ||
|
||
property := self animationsEditorInstance selectedTreeNode. | ||
property deactivateProperty. | ||
property | ||
positionX: 555; | ||
positionY: 555; | ||
frame: 500. | ||
self animationsEditorInstance addKeyframe. | ||
self assert: (property targetValues at: 500 ifAbsent: true). |
13 changes: 13 additions & 0 deletions
13
...ionsEditor-Tests.package/AnimationsEditorTogglePropertiesTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"animationsEditorInstance" : "ob 7/30/2022 17:55", | ||
"animationsEditorInstance:" : "ob 7/30/2022 17:55", | ||
"dummyProperty" : "ob 7/30/2022 17:56", | ||
"setUp" : "ob 7/30/2022 17:57", | ||
"tearDown" : "ob 7/30/2022 17:57", | ||
"testKeyframeAddedToActivatedProperty" : "ob 7/30/2022 18:27", | ||
"testKeyframesDeteledFromTrackWhenPropertyDeactivated" : "ob 7/30/2022 18:21", | ||
"testNoActivatedPropertiesOnStart" : "ob 7/30/2022 18:21", | ||
"testNoKeyframeAddedToDeactivatedProperty" : "ob 7/30/2022 18:21" } } |
14 changes: 14 additions & 0 deletions
14
...AnimationsEditor-Tests.package/AnimationsEditorTogglePropertiesTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "AnimationsEditor-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"animationsEditorInstance" ], | ||
"name" : "AnimationsEditorTogglePropertiesTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |