Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Tonel V3 #69

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 19 additions & 18 deletions src/BaselineOfRoassal/BaselineOfRoassal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@
Baseline for https://github.com/pharo-graphics/Roassal
"
Class {
#name : #BaselineOfRoassal,
#superclass : #BaselineOf,
#category : #BaselineOfRoassal
#name : 'BaselineOfRoassal',
#superclass : 'BaselineOf',
#category : 'BaselineOfRoassal',
#package : 'BaselineOfRoassal'
}

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> aiDatasets: spec [
spec
baseline: 'AIDatasets'
with: [ spec repository: 'github://pharo-ai/datasets' ]
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> athensSVG: spec [
spec baseline: 'AthensSVG' with: [
spec repository: 'github://pharo-contributions/Athens-SVG/src' ].
spec package: 'Athens-SVG-PathConverter' with: [
spec repository: 'github://pharo-contributions/Athens-SVG/src'].
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfRoassal >> baseline: spec [
"https://github.com/pharo-graphics/Roassal"

Expand Down Expand Up @@ -50,7 +51,7 @@ BaselineOfRoassal >> baseline: spec [
spec group: 'Core' with: #( 'Roassal-Pharo12' ) ]
]

{ #category : #baselines }
{ #category : 'baselines' }
BaselineOfRoassal >> baselineOfCommon: spec [

spec for: #common do: [
Expand Down Expand Up @@ -95,13 +96,13 @@ BaselineOfRoassal >> baselineOfCommon: spec [
group: 'Full-DataFrame' with: #( 'Full' 'Roassal-Chart-DataFrame' ) ]
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> bloc: spec [
spec baseline: 'Bloc' with: [
spec repository: 'github://pharo-graphics/Bloc:dev-1.0/src' ]
]

{ #category : #'API-packages' }
{ #category : 'API-packages' }
BaselineOfRoassal >> corePackagesNames [
^ #(
'Roassal-Event'
Expand All @@ -128,14 +129,14 @@ BaselineOfRoassal >> corePackagesNames [
)
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> dataFrame: spec [
spec
baseline: 'DataFrame'
with: [ spec repository: 'github://PolyMathOrg/DataFrame/src' ]
]

{ #category : #'API-packages' }
{ #category : 'API-packages' }
BaselineOfRoassal >> examplePackagesNames [
^ #(
'Roassal-Examples'
Expand All @@ -148,7 +149,7 @@ BaselineOfRoassal >> examplePackagesNames [
'Roassal-Spec-Examples')
]

{ #category : #'API-packages' }
{ #category : 'API-packages' }
BaselineOfRoassal >> extraPackagesNames [
^ #(
'Roassal-Experimental'
Expand All @@ -159,40 +160,40 @@ BaselineOfRoassal >> extraPackagesNames [
'Roassal-TreeMap-Examples')
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> geometry: spec [
spec baseline: 'Geometry' with: [
spec repository: 'github://pharo-contributions/Geometry/src' ]
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> layouts: spec [
spec
baseline: 'RoassalLayouts'
with: [ spec repository: 'github://pharo-graphics/RoassalLayouts:v1.01/src' ]
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> numeric: spec [
spec baseline: 'NumericScales'with: [
spec repository: 'github://pharo-graphics/NumericScales:v1.03/src' ].
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> rtree: spec [
spec
baseline: 'RTree'
with: [ spec repository: 'github://pharo-graphics/RTree:v1.01/src' ]
]

{ #category : #dependencies }
{ #category : 'dependencies' }
BaselineOfRoassal >> subProcess: spec [
spec
baseline: 'OSSubprocess'
with: [ spec repository: 'github://pharo-contributions/OSSubprocess/repository' ]
]

{ #category : #'API-packages' }
{ #category : 'API-packages' }
BaselineOfRoassal >> testPackagesNames [
^ #(
'Roassal-Global-Tests'
Expand Down
2 changes: 1 addition & 1 deletion src/BaselineOfRoassal/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BaselineOfRoassal }
Package { #name : 'BaselineOfRoassal' }
15 changes: 8 additions & 7 deletions src/Roassal-Animation-Tests/RSAnimationTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
base of animation tests
"
Class {
#name : #RSAnimationTest,
#superclass : #RSTest,
#name : 'RSAnimationTest',
#superclass : 'RSTest',
#instVars : [
'canvas'
],
#category : #'Roassal-Animation-Tests'
#category : 'Roassal-Animation-Tests',
#package : 'Roassal-Animation-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
RSAnimationTest >> addingInComposite: compositeAnimation duration: aDuration [
compositeAnimation
add: (RSTransitionAnimation new
Expand All @@ -22,7 +23,7 @@ RSAnimationTest >> addingInComposite: compositeAnimation duration: aDuration [
self assert: compositeAnimation duration equals: aDuration
]

{ #category : #tests }
{ #category : 'tests' }
RSAnimationTest >> createAnimationWith: block animationClass: class [
| animation |
self assert: canvas animations size equals: 0.
Expand All @@ -31,7 +32,7 @@ RSAnimationTest >> createAnimationWith: block animationClass: class [
self assert: animation class equals: class
]

{ #category : #running }
{ #category : 'running' }
RSAnimationTest >> runAnimation: animation threshold: threshold [
| time ended |

Expand All @@ -47,7 +48,7 @@ RSAnimationTest >> runAnimation: animation threshold: threshold [
]
]

{ #category : #running }
{ #category : 'running' }
RSAnimationTest >> setUp [
super setUp.
canvas := RSCanvas new
Expand Down
9 changes: 5 additions & 4 deletions src/Roassal-Animation-Tests/RSEasingInterpolatorTest.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Class {
#name : #RSEasingInterpolatorTest,
#superclass : #TestCase,
#category : #'Roassal-Animation-Tests'
#name : 'RSEasingInterpolatorTest',
#superclass : 'TestCase',
#category : 'Roassal-Animation-Tests',
#package : 'Roassal-Animation-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
RSEasingInterpolatorTest >> testAllEasing [
"Simply check if no error is raised"
| someX |
Expand Down
23 changes: 12 additions & 11 deletions src/Roassal-Animation-Tests/RSPAnimationTest.class.st
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Class {
#name : #RSPAnimationTest,
#superclass : #ParametrizedTestCase,
#name : 'RSPAnimationTest',
#superclass : 'ParametrizedTestCase',
#instVars : [
'canvas',
'animationClass'
],
#category : #'Roassal-Animation-Tests'
#category : 'Roassal-Animation-Tests',
#package : 'Roassal-Animation-Tests'
}

{ #category : #'building suites' }
{ #category : 'building suites' }
RSPAnimationTest class >> testParameters [
| m classesToConsider |
m := ParametrizedTestMatrix new.
Expand All @@ -19,23 +20,23 @@ RSPAnimationTest class >> testParameters [
^ m
]

{ #category : #accessing }
{ #category : 'accessing' }
RSPAnimationTest >> animationClass [
^ animationClass
]

{ #category : #accessing }
{ #category : 'accessing' }
RSPAnimationTest >> animationClass: aClass [
animationClass := aClass
]

{ #category : #running }
{ #category : 'running' }
RSPAnimationTest >> setUp [
super setUp.
canvas := RSCanvas new
]

{ #category : #tests }
{ #category : 'tests' }
RSPAnimationTest >> testBasic [
| animation |
animation := self animationClass new.
Expand All @@ -61,7 +62,7 @@ RSPAnimationTest >> testBasic [
self assert: animation loops equals: 3
]

{ #category : #tests }
{ #category : 'tests' }
RSPAnimationTest >> testBasicInCanvas [
| animation |
animation := self animationClass new.
Expand All @@ -72,7 +73,7 @@ RSPAnimationTest >> testBasicInCanvas [
self assert: animation duration equals: self animationClass defaultDuration
]

{ #category : #tests }
{ #category : 'tests' }
RSPAnimationTest >> testDelay [
| animation |
animation := self animationClass new.
Expand All @@ -83,7 +84,7 @@ RSPAnimationTest >> testDelay [
self assert: animation isDelayDone
]

{ #category : #tests }
{ #category : 'tests' }
RSPAnimationTest >> testError [

| c shape ani |
Expand Down
17 changes: 9 additions & 8 deletions src/Roassal-Animation-Tests/RSParallelAnimationTest.class.st
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Class {
#name : #RSParallelAnimationTest,
#superclass : #RSAnimationTest,
#category : #'Roassal-Animation-Tests'
#name : 'RSParallelAnimationTest',
#superclass : 'RSAnimationTest',
#category : 'Roassal-Animation-Tests',
#package : 'Roassal-Animation-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
RSParallelAnimationTest >> testAddingAnimations [
self
addingInComposite: canvas parallelAnimation
duration: 2 second
]

{ #category : #tests }
{ #category : 'tests' }
RSParallelAnimationTest >> testDuration [
| animation |
animation := RSParallelAnimation new.
Expand Down Expand Up @@ -41,14 +42,14 @@ RSParallelAnimationTest >> testDuration [
self assert: animation allDuration equals: 4 seconds
]

{ #category : #tests }
{ #category : 'tests' }
RSParallelAnimationTest >> testParallelAnimationCreation [
self
createAnimationWith: [ canvas parallelAnimationFrom: {} ]
animationClass: RSParallelAnimation
]

{ #category : #tests }
{ #category : 'tests' }
RSParallelAnimationTest >> testStep [
| value animation |
value := 0.
Expand All @@ -64,7 +65,7 @@ RSParallelAnimationTest >> testStep [
self assert: value equals: 2
]

{ #category : #tests }
{ #category : 'tests' }
RSParallelAnimationTest >> testStepEvent [
| value loop animation |
value := nil.
Expand Down
17 changes: 9 additions & 8 deletions src/Roassal-Animation-Tests/RSSequentialAnimationTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
I have test for sequential animation
"
Class {
#name : #RSSequentialAnimationTest,
#superclass : #RSAnimationTest,
#category : #'Roassal-Animation-Tests'
#name : 'RSSequentialAnimationTest',
#superclass : 'RSAnimationTest',
#category : 'Roassal-Animation-Tests',
#package : 'Roassal-Animation-Tests'
}

{ #category : #tests }
{ #category : 'tests' }
RSSequentialAnimationTest >> testAddingAnimations [
self
addingInComposite: canvas sequentialAnimation
duration: 3 second
]

{ #category : #tests }
{ #category : 'tests' }
RSSequentialAnimationTest >> testDuration [
| animation |
animation := RSSequentialAnimation new.
Expand All @@ -41,14 +42,14 @@ RSSequentialAnimationTest >> testDuration [
self assert: animation allDuration equals: 2 seconds
]

{ #category : #tests }
{ #category : 'tests' }
RSSequentialAnimationTest >> testSequentialAnimationCreation [
self
createAnimationWith: [ canvas animationFrom: {} ]
animationClass: RSSequentialAnimation
]

{ #category : #tests }
{ #category : 'tests' }
RSSequentialAnimationTest >> testStep [
| value animation |
value := 0.
Expand All @@ -62,7 +63,7 @@ RSSequentialAnimationTest >> testStep [
self assert: value equals: 1
]

{ #category : #tests }
{ #category : 'tests' }
RSSequentialAnimationTest >> testStepEvent [
| value loop animation |
value := nil.
Expand Down
Loading
Loading