-
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.
* Removed animation tests * Added accessing tests for all propertys * Restructured animations editor tests * Update .smalltalk.ston Co-authored-by: Tim <49529745+1T1m@users.noreply.github.com>
- Loading branch information
1 parent
b404d1c
commit 3d0cd68
Showing
69 changed files
with
378 additions
and
82 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/defaultEmptyPanels.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 @@ | ||
defaults | ||
defaultEmptyPanels | ||
^ OrderedCollection new. |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/emptyPanels.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
accessing | ||
emptyPanels | ||
emptyPanels | ||
ifNil: [self emptyPanels: OrderedCollection new]. | ||
ifNil: [self emptyPanels: self defaultEmptyPanels]. | ||
|
||
^ emptyPanels. |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/informationBar..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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
buildComponents | ||
accessing | ||
informationBar: aPluggableTextSpec | ||
informationBar := aPluggableTextSpec. |
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/informationBar.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
buildComponents | ||
accessing | ||
informationBar | ||
^ informationBar. |
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
2 changes: 1 addition & 1 deletion
2
...ationsEditor-Core.package/AnimationsEditorProperty.class/instance/defaultSubproperties.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
default | ||
defaults | ||
defaultSubproperties | ||
^ (OrderedCollection new). |
2 changes: 1 addition & 1 deletion
2
...tionsEditor-Core.package/AnimationsEditorProperty.class/instance/defaultTargetDuration.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
default | ||
defaults | ||
defaultTargetDuration | ||
^ 500. |
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
3 changes: 0 additions & 3 deletions
3
...imationsEditor-Core.package/AnimationsEditorPropertyColor.class/instance/colorAsString.st
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...onsEditor-Core.package/AnimationsEditorPropertyColor.class/instance/defaultTargetColor.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 @@ | ||
defaults | ||
defaultTargetColor | ||
^ Color white. |
2 changes: 1 addition & 1 deletion
2
...AnimationsEditor-Core.package/AnimationsEditorPropertyColor.class/instance/targetColor.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
accessing | ||
targetColor | ||
targetColor | ||
ifNil: [self targetColor: Color veryLightGray]. | ||
ifNil: [self targetColor: self defaultTargetColor]. | ||
|
||
^ targetColor. |
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
Empty file.
6 changes: 6 additions & 0 deletions
6
...-Tests.package/AnimationsEditorPropertyColorTest.class/instance/testCanCreateAnimation.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,6 @@ | ||
as yet unclassified | ||
testCanCreateAnimation | ||
| p | | ||
p := AnimationsEditorPropertyColor new. | ||
|
||
self assert: (p canCreateAnimation = true). |
6 changes: 6 additions & 0 deletions
6
...sEditor-Tests.package/AnimationsEditorPropertyColorTest.class/instance/testCanRenderUI.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,6 @@ | ||
as yet unclassified | ||
testCanRenderUI | ||
| p | | ||
p := AnimationsEditorPropertyColor new. | ||
|
||
self assert: (p canRenderUI = true). |
3 changes: 3 additions & 0 deletions
3
...or-Tests.package/AnimationsEditorPropertyColorTest.class/instance/testInstanceCreation.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 @@ | ||
as yet unclassified | ||
testInstanceCreation | ||
self assert: (AnimationsEditorPropertyColor new = nil) not. |
6 changes: 6 additions & 0 deletions
6
...r-Tests.package/AnimationsEditorPropertyColorTest.class/instance/testTargetColorGetter.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,6 @@ | ||
as yet unclassified | ||
testTargetColorGetter | ||
| p | | ||
p := AnimationsEditorPropertyColor new. | ||
|
||
self assert: (p targetColor = p defaultTargetColor). |
6 changes: 6 additions & 0 deletions
6
...package/AnimationsEditorPropertyColorTest.class/instance/testTargetColorGetterAsString.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,6 @@ | ||
as yet unclassified | ||
testTargetColorGetterAsString | ||
| p | | ||
p := AnimationsEditorPropertyColor new. | ||
|
||
self assert: (p targetColorAsString = p defaultTargetColor asString). |
8 changes: 8 additions & 0 deletions
8
...r-Tests.package/AnimationsEditorPropertyColorTest.class/instance/testTargetColorSetter.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 @@ | ||
as yet unclassified | ||
testTargetColorSetter | ||
| p testColor | | ||
p := AnimationsEditorPropertyColor new. | ||
|
||
testColor := 'red'. | ||
p targetColor: testColor. | ||
self assert: (p targetColor = Color red). |
10 changes: 10 additions & 0 deletions
10
...mationsEditor-Tests.package/AnimationsEditorPropertyColorTest.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,10 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"testCanCreateAnimation" : "DM 8/7/2020 17:19", | ||
"testCanRenderUI" : "DM 8/7/2020 17:19", | ||
"testInstanceCreation" : "DM 8/7/2020 17:19", | ||
"testTargetColorGetter" : "DM 8/7/2020 17:32", | ||
"testTargetColorGetterAsString" : "DM 8/7/2020 17:31", | ||
"testTargetColorSetter" : "DM 8/7/2020 17:21" } } |
14 changes: 14 additions & 0 deletions
14
...es/AnimationsEditor-Tests.package/AnimationsEditorPropertyColorTest.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" : [ | ||
], | ||
"name" : "AnimationsEditorPropertyColorTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |
6 changes: 6 additions & 0 deletions
6
...sts.package/AnimationsEditorPropertyPositionTest.class/instance/testCanCreateAnimation.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,6 @@ | ||
as yet unclassified | ||
testCanCreateAnimation | ||
| p | | ||
p := AnimationsEditorPropertyPosition new. | ||
|
||
self assert: (p canCreateAnimation = true). |
6 changes: 6 additions & 0 deletions
6
...itor-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testCanRenderUI.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,6 @@ | ||
as yet unclassified | ||
testCanRenderUI | ||
| p | | ||
p := AnimationsEditorPropertyPosition new. | ||
|
||
self assert: (p canRenderUI = true). |
15 changes: 0 additions & 15 deletions
15
...-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testCreateAnimation.st
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...ests.package/AnimationsEditorPropertyPositionTest.class/instance/testPositionAccessors.st
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testPositionXGetter.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,5 @@ | ||
as yet unclassified | ||
testPositionXGetter | ||
| p | | ||
p := AnimationsEditorPropertyPosition new. | ||
self assert: (p positionX = (p defaultTargetPosition x) asString). |
8 changes: 8 additions & 0 deletions
8
...-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testPositionXSetter.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 @@ | ||
as yet unclassified | ||
testPositionXSetter | ||
| p testX | | ||
p := AnimationsEditorPropertyPosition new. | ||
|
||
testX := 3423. | ||
p positionX: testX. | ||
self assert: (p positionX = testX asString). |
5 changes: 5 additions & 0 deletions
5
...-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testPositionYGetter.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,5 @@ | ||
as yet unclassified | ||
testPositionYGetter | ||
| p | | ||
p := AnimationsEditorPropertyPosition new. | ||
self assert: (p positionY = (p defaultTargetPosition y) asString). |
8 changes: 8 additions & 0 deletions
8
...-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testPositionYSetter.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 @@ | ||
as yet unclassified | ||
testPositionYSetter | ||
| p testY | | ||
p := AnimationsEditorPropertyPosition new. | ||
|
||
testY := 3423. | ||
p positionY: testY. | ||
self assert: (p positionY = testY asString). |
17 changes: 0 additions & 17 deletions
17
...itor-Tests.package/AnimationsEditorPropertyPositionTest.class/instance/testSetPosition.st
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...s.package/AnimationsEditorPropertyPositionTest.class/instance/testTargetPositionGetter.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,5 @@ | ||
as yet unclassified | ||
testTargetPositionGetter | ||
| p | | ||
p := AnimationsEditorPropertyPosition new. | ||
self assert: (p targetPosition = p defaultTargetPosition). |
8 changes: 8 additions & 0 deletions
8
...s.package/AnimationsEditorPropertyPositionTest.class/instance/testTargetPositionSetter.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 @@ | ||
as yet unclassified | ||
testTargetPositionSetter | ||
| p tempPosition | | ||
p := AnimationsEditorPropertyPosition new. | ||
tempPosition := 200@100. | ||
p targetPosition: tempPosition. | ||
|
||
self assert: (p targetPosition = tempPosition). |
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
Empty file.
6 changes: 6 additions & 0 deletions
6
...sts.package/AnimationsEditorPropertyRotationTest.class/instance/testCanCreateAnimation.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,6 @@ | ||
as yet unclassified | ||
testCanCreateAnimation | ||
| p | | ||
p := AnimationsEditorPropertyRotation new. | ||
|
||
self assert: (p canCreateAnimation = true). |
6 changes: 6 additions & 0 deletions
6
...itor-Tests.package/AnimationsEditorPropertyRotationTest.class/instance/testCanRenderUI.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,6 @@ | ||
as yet unclassified | ||
testCanRenderUI | ||
| p | | ||
p := AnimationsEditorPropertyRotation new. | ||
|
||
self assert: (p canRenderUI = true). |
3 changes: 3 additions & 0 deletions
3
...Tests.package/AnimationsEditorPropertyRotationTest.class/instance/testInstanceCreation.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 @@ | ||
as yet unclassified | ||
testInstanceCreation | ||
self assert: (AnimationsEditorPropertyRotation new = nil) not. |
5 changes: 5 additions & 0 deletions
5
...s.package/AnimationsEditorPropertyRotationTest.class/instance/testTargetRotationGetter.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,5 @@ | ||
as yet unclassified | ||
testTargetRotationGetter | ||
| p | | ||
p := AnimationsEditorPropertyRotation new. | ||
self assert: (p targetRotation = p defaultTargetRotation). |
5 changes: 5 additions & 0 deletions
5
...e/AnimationsEditorPropertyRotationTest.class/instance/testTargetRotationGetterAsString.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,5 @@ | ||
as yet unclassified | ||
testTargetRotationGetterAsString | ||
| p | | ||
p := AnimationsEditorPropertyRotation new. | ||
self assert: (p targetRotationAsString = p defaultTargetRotation asString). |
8 changes: 8 additions & 0 deletions
8
...s.package/AnimationsEditorPropertyRotationTest.class/instance/testTargetRotationSetter.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 @@ | ||
as yet unclassified | ||
testTargetRotationSetter | ||
| p testRotation | | ||
p := AnimationsEditorPropertyRotation new. | ||
|
||
testRotation := 3423. | ||
p targetRotation: testRotation. | ||
self assert: (p targetRotation = testRotation). |
10 changes: 10 additions & 0 deletions
10
...ionsEditor-Tests.package/AnimationsEditorPropertyRotationTest.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,10 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"testCanCreateAnimation" : "DM 8/7/2020 17:14", | ||
"testCanRenderUI" : "DM 8/7/2020 17:14", | ||
"testInstanceCreation" : "DM 8/7/2020 17:14", | ||
"testTargetRotationGetter" : "DM 8/7/2020 17:17", | ||
"testTargetRotationGetterAsString" : "DM 8/7/2020 17:17", | ||
"testTargetRotationSetter" : "DM 8/7/2020 17:16" } } |
14 changes: 14 additions & 0 deletions
14
...AnimationsEditor-Tests.package/AnimationsEditorPropertyRotationTest.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" : [ | ||
], | ||
"name" : "AnimationsEditorPropertyRotationTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |
Empty file.
6 changes: 6 additions & 0 deletions
6
...r-Tests.package/AnimationsEditorPropertySizeTest.class/instance/testCanCreateAnimation.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,6 @@ | ||
as yet unclassified | ||
testCanCreateAnimation | ||
| p | | ||
p := AnimationsEditorPropertySize new. | ||
|
||
self assert: (p canCreateAnimation = true). |
6 changes: 6 additions & 0 deletions
6
...nsEditor-Tests.package/AnimationsEditorPropertySizeTest.class/instance/testCanRenderUI.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,6 @@ | ||
as yet unclassified | ||
testCanRenderUI | ||
| p | | ||
p := AnimationsEditorPropertySize new. | ||
|
||
self assert: (p canRenderUI = true). |
Oops, something went wrong.