Skip to content

Commit

Permalink
Merge pull request #690 from pharo-graphics/MakeCIRunAllTestPackages
Browse files Browse the repository at this point in the history
CI: run all test packages
  • Loading branch information
tinchodias authored Feb 5, 2025
2 parents ddebcbf + cc86987 commit ad0dadb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .ci.ston
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@ SmalltalkCISpec {
#directory : 'src',
#platforms : [ #pharo ]
}
],
#testing : {
#exclude : {
#packages : [ 'Bloc-Examples.*', 'Bloc-Layout-Examples.*', 'Bloc-Text-Examples.*' ]
}
}
]
}
1 change: 1 addition & 0 deletions src/Bloc-Examples/BlElementBoundsByScripterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ BlElementBoundsByScripterTest >> testBoundsInSpace2 [

{ #category : #tests }
BlElementBoundsByScripterTest >> testBoundsInSpace3 [
<expectedFailure>

| aScripter |
aScripter := self testBoundsInSpace2.
Expand Down
60 changes: 36 additions & 24 deletions src/Bloc-Text-Examples/BlTextIteratorExamplesTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ Class {
#category : #'Bloc-Text-Examples-Model'
}

{ #category : #'instance creation' }
BlTextIteratorExamplesTest >> newTextSizeTenAttribute [

^ BlFontSizeAttribute size: 10
]

{ #category : #'instance creation' }
BlTextIteratorExamplesTest >> testAttributed_end [

<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 11 to: 15) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 11 to: 15) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -29,7 +33,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_attributed_end_at_1 [
anIterator := self testAttributed_end.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -51,7 +56,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_span_any_at_1 [
anIterator := self testAttributed_end.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -73,7 +79,8 @@ BlTextIteratorExamplesTest >> testAttributed_end_next_span_any_at_10 [
anIterator := self testAttributed_end_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -93,10 +100,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle [
<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 6 to: 10) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 6 to: 10) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -112,7 +117,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_attributed_end_at_1 [
anIterator := self testAttributed_middle.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -134,7 +140,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_attributed_end_at_10 [
anIterator := self testAttributed_middle_next_attributed_end_at_1.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -156,7 +163,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_1 [
anIterator := self testAttributed_middle.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -178,7 +186,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_10 [
anIterator := self testAttributed_middle_next_span_any_at_5.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -200,7 +209,8 @@ BlTextIteratorExamplesTest >> testAttributed_middle_next_span_any_at_5 [
anIterator := self testAttributed_middle_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -220,10 +230,8 @@ BlTextIteratorExamplesTest >> testAttributed_start [
<sampleInstance>
| aText anIterator |
aText := 'EarthHelloWorld' asRopedText.
(aText from: 1 to: 5) appendingAdornment: [
BlElement new
size: 10 @ 10;
background: Color lightGray ].

(aText from: 1 to: 5) attribute: self newTextSizeTenAttribute.

anIterator := aText iterator.
self assert: anIterator position equals: 0.
Expand All @@ -239,7 +247,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_attributed_end_at_1 [
anIterator := self testAttributed_start.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -261,7 +270,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_attributed_end_at_5 [
anIterator := self testAttributed_start_next_attributed_end_at_1.

anIterator
nextAttributedEnd: [ :eachAttribute | eachAttribute isAdornment ]
nextAttributedEnd: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :theAttributes |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -283,7 +293,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_span_any_at_1 [
anIterator := self testAttributed_start.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand All @@ -305,7 +316,8 @@ BlTextIteratorExamplesTest >> testAttributed_start_next_span_any_at_5 [
anIterator := self testAttributed_start_next_span_any_at_1.

anIterator
nextSpanAny: [ :eachAttribute | eachAttribute isAdornment ]
nextSpanAny: [ :eachAttribute |
eachAttribute = self newTextSizeTenAttribute ]
indicesDo: [ :indexStart :indexEnd :hasAny |
aStart := indexStart.
anEnd := indexEnd.
Expand Down

0 comments on commit ad0dadb

Please sign in to comment.