-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/Material-Design-Tests-Colors.package/MDLColorTests.class/instance/testIsAccentuated.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,4 @@ | ||
tests | ||
testIsAccentuated | ||
self deny: (MDLColor tint: #orange code: '500') isAccentuated. | ||
self assert: (MDLColor tint: #orange code: 'A400' ) isAccentuated |
6 changes: 6 additions & 0 deletions
6
src/Material-Design-Tests-Colors.package/MDLColorTests.class/instance/testTint.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 @@ | ||
tests | ||
testTint | ||
self assert: (MDLColor tint: #orange) equals: MDLColor orange. | ||
"Ensure String and Symbol works" | ||
self assert: (MDLColor tint: 'orange') equals: MDLColor orange. | ||
self assert: (MDLColor tint: #orange) asRGBA equals: 'rgba(255,152,0,1)' |
6 changes: 6 additions & 0 deletions
6
src/Material-Design-Tests-Colors.package/MDLColorTests.class/instance/testTintCode.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 @@ | ||
tests | ||
testTintCode | ||
self assert: (MDLColor tint: #orange code: #'800') asRGBA equals: 'rgba(239,108,0,1)'. | ||
"Ensure String and Symbol works" | ||
self assert: (MDLColor tint: 'orange' code: #'800') asRGBA equals: 'rgba(239,108,0,1)'. | ||
self assert: (MDLColor tint: 'orange' code: '800') asRGBA equals: 'rgba(239,108,0,1)'. |