forked from pharo-project/pharo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On TextFontChange, TextFontReference, TextEmphasis, TextIndent Fix a miss use of TextIndent
- Loading branch information
hilaire
committed
Sep 29, 2019
1 parent
49c19d8
commit 6cd24d4
Showing
8 changed files
with
129 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,28 @@ | ||
Class { | ||
#name : #TextIndentTest, | ||
#superclass : #TestCase, | ||
#category : #'Text-Tests-Base' | ||
} | ||
|
||
{ #category : #tests } | ||
TextIndentTest >> testAmount [ | ||
| text | | ||
text := 'Hello' asText addAttribute: (TextIndent amount: 2). | ||
self assert: text runs first first amount equals: 2 | ||
] | ||
|
||
{ #category : #tests } | ||
TextIndentTest >> testDominates [ | ||
self assert: ((TextIndent tabs: 1) dominates: (TextIndent tabs: 2)). | ||
self deny: ((TextIndent tabs: 1) dominates: TextEmphasis bold). | ||
self deny: ((TextIndent tabs: 1) dominates: TextFontChange font2). | ||
|
||
] | ||
|
||
{ #category : #tests } | ||
TextIndentTest >> testTabs [ | ||
| text | | ||
"tabs: is a synonym for amount:" | ||
text := 'Hello' asText addAttribute: (TextIndent tabs: 4). | ||
self assert: text runs first first amount equals: 4 | ||
] |
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