Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TBlAlignableTest a unit test with a mock element instead of usin…
…g linear layout This removes an unneeded reference to Bloc-Layout package.
- Loading branch information
1 parent
5894105
commit c88f89f
Showing
3 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
" | ||
I'm a mock element for unit-testing `TBlAlignable`. | ||
" | ||
Class { | ||
#name : #BlMockAlignableElement, | ||
#superclass : #BlElement, | ||
#traits : 'TBlAlignable', | ||
#classTraits : 'TBlAlignable classTrait', | ||
#instVars : [ | ||
'horizontalAlignment', | ||
'verticalAlignment' | ||
], | ||
#category : #'Bloc-Tests-Layouts-Alignment' | ||
} | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> horizontalAlignment [ | ||
|
||
^ horizontalAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> horizontalAlignment: aBlElementAlignment [ | ||
|
||
horizontalAlignment := aBlElementAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> verticalAlignment [ | ||
|
||
^ verticalAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> verticalAlignment: aBlElementAlignment [ | ||
|
||
verticalAlignment := aBlElementAlignment | ||
] |
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