GraphicsTests

BMPReadWriterTest
A BMPReadWriterTest is xxxxxxxxx.
Instance Variables
bmpData16bit
Created via:
(Base64MimeConverter mimeEncode:
(FileStream readOnlyFileNamed: 'bmptest16b.bmp') binary)
contents
bmpData24bit
Created via:
(Base64MimeConverter mimeEncode:
(FileStream readOnlyFileNamed: 'bmptest24.bmp') binary)
contents
bmpData32bit
Created via:
(Base64MimeConverter mimeEncode:
(FileStream readOnlyFileNamed: 'bmptest32b.bmp') binary)
contents
bmpData4bit
Created via:
(Base64MimeConverter mimeEncode:
(FileStream readOnlyFileNamed: 'bmptest4.bmp') binary)
contents
bmpData8bit
Created via:
(Base64MimeConverter mimeEncode:
(FileStream readOnlyFileNamed: 'bmptest8.bmp') binary)
contents
bmpDataR5G6B5
This is a BMP file based on BitmapV4Header which is currently unsupported.
bmpDataX4R4G4B4
This is a BMP file based on BitmapV4Header which is currently unsupported.
bmpDataX8R8G8B8
This is a BMP file based on BitmapV4Header which is currently unsupported.
testBmp16Bit
testBmp24Bit
testBmp32Bit
testBmp4Bit
testBmp8Bit
BitBltTest
A BitBltTest is xxxxxxxxx.
Instance Variables
testAlphaCompositing
self run: #testAlphaCompositing
testAlphaCompositing2
self run: #testAlphaCompositing2
testAlphaCompositing2Simulated
self run: #testAlphaCompositing2Simulated
testAlphaCompositingSimulated
self run: #testAlphaCompositingSimulated
testPeekerUnhibernateBug
self run: #testPeekerUnhibernateBug
testPokerUnhibernateBug
self run: #testPokerUnhibernateBug
ColorTest
A ColorTest is xxxxxxxxx.
Instance Variables
testAsHTMLColor
testColorFrom
testFromString
testMultiplyByArray
testMultiplyByArrayIdentityTransform
testMultiplyByNumber
testPrintHtmlString
self debug: #testPrintHtmlString
FormTest
Various tests for class form.
testIsAllWhite
self run: #testIsAllWhite
PNGReadWriterTest
A PNGReadWriterTest is xxxxxxxxx.
Instance Variables
fileName: <Object>
fileName
- xxxxx
coloredFiles16
Created by
{Color red. Color green. Color blue. Color black} collect:[:fillC|
| ff bytes |
ff := Form extent: 32@32 depth: 16.
ff fillColor: fillC.
bytes := WriteStream on: ByteArray new.
PNGReadWriter putForm: ff onStream: bytes.
fillC ->
(Base64MimeConverter mimeEncode: (bytes contents readStream)) contents
].
coloredFiles32
Created by
{Color red. Color green. Color blue. Color black} collect:[:fillC|
| ff bytes |
ff := Form extent: 32@32 depth: 32.
ff fillColor: fillC.
bytes := WriteStream on: ByteArray new.
PNGReadWriter putForm: ff onStream: bytes.
fillC ->
(Base64MimeConverter mimeEncode: (bytes contents readStream)) contents
].
coloredFiles8
Created by
{Color red. Color green. Color blue. Color black} collect:[:fillC|
| ff bytes |
ff := Form extent: 32@32 depth: 8.
ff fillColor: fillC.
bytes := WriteStream on: ByteArray new.
PNGReadWriter putForm: ff onStream: bytes.
fillC ->
(Base64MimeConverter mimeEncode: (bytes contents readStream)) contents
].
decodeColors:depth:
deleteFile
drawStuffOn:
Draw stuff on aForm. Avoid any symmetry.
drawTransparentStuffOn:
Draw stuff on aForm. Avoid any symmetry.
encodeAndDecode:
Make sure that the given form is encoded and decoded correctly
encodeAndDecodeAlpha:
encodeAndDecodeColor:depth:
encodeAndDecodeDisplay:
encodeAndDecodeForm:
encodeAndDecodeReverse:
Make sure that the given form is encoded and decoded correctly
encodeAndDecodeStream:
encodeAndDecodeWithColors:
Screw around with aColorForm colors
encodeAndDecodeWithError:
encodeColors:depth:
readEncoded:
Answer a ReadStream on the file named by fileName, if possible; else a ReadStream on bytes
setUp
tearDown
test16Bit
test16BitDisplay
test16BitReversed
test1Bit
test1BitColors
test1BitDisplay
test1BitReversed
test2Bit
test2BitColors
test2BitDisplay
test2BitReversed
test32Bit
test32BitDisplay
test32BitReversed
test4Bit
test4BitColors
test4BitDisplay
test4BitReversed
test8Bit
test8BitColors
test8BitDisplay
test8BitReversed
testAlphaCoding
testBlack16
testBlack32
testBlack8
testBlue16
testBlue32
testBlue8
testGreen16
testGreen32
testGreen8
testPngDecodingColors16
testPngDecodingColors32
testPngDecodingColors8
testPngEncodingColors16
testPngEncodingColors32
testPngEncodingColors8
testPngSuite
Requires the suite from
ftp://swrinde.nde.swri.edu/pub/png/images/suite/PngSuite.zip
to be present as PngSuite.zip
testRed16
testRed32
testRed8
writeEncoded:
PointTest
This is the unit test for the class Point. Unit tests are a good way to exercise the functionality of your system in a repeatable and automatic manner. They are therefore recommended if you plan to release anything. For more information, see:
- http://www.c2.com/cgi/wiki?UnitTest
- http://minnow.cc.gatech.edu/squeak/1547
- the sunit class category
testBearingToPoint
testIsZero
testTheta
RectangleTest
A RectangleTest is xxxxxxxxx.
Instance Variables
emptyRectangle: <Object>
rectangle1: <Object>
emptyRectangle
- xxxxx
rectangle1
- xxxxx
setUp
testARectangleContainsItsOrigin
testARectangleDoesNotContainItsCorner
testARectangleIntersectsWithItself
testAnEmptyRectangleHasNoArea
testAreasOutside1
testAreasOutside2
testMergingDisjointRectangles
testMergingNestedRectanglesReturnTheContainer
testMergingOneRectangleReturnsThisRectangle
testMergingOverlappingRectangles
testMergingOverlappingRects
testMergingTwoRectangles
testRectanglesWithSameOriginIntersect
testTwoRectanglesWithAnAdjascentBorderDoNotIntersect
testTwoRectanglesWithAnAdjascentCornerDoNotIntersect
TextStyleTest
A TextStyleTest is xxxxxxxxx.
Instance Variables
setUp
subclasses will add their prototypes into this collection