diff --git a/src/Alexandrie-Cairo-Tests/AeCairoContextTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoContextTest.class.st index e641ebe..ed2e5e6 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoContextTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoContextTest.class.st @@ -1,15 +1,14 @@ Class { - #name : 'AeCairoContextTest', - #superclass : 'TestCase', + #name : #AeCairoContextTest, + #superclass : #TestCase, #instVars : [ 'surface', 'context' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'running' } +{ #category : #running } AeCairoContextTest >> newSourceSansProRegularFontFace [ | aFTLibrary aFTFace | @@ -18,7 +17,7 @@ AeCairoContextTest >> newSourceSansProRegularFontFace [ ^ AeCairoFreetypeFontFace newForFace: aFTFace ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testClipExtents [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -63,7 +62,7 @@ AeCairoContextTest >> testClipExtents [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testCurrentPoint [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -93,7 +92,7 @@ AeCairoContextTest >> testCurrentPoint [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testCurrentTarget [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -111,7 +110,7 @@ AeCairoContextTest >> testCurrentTarget [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testFillRule [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -129,7 +128,7 @@ AeCairoContextTest >> testFillRule [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testFontExtents [ | aSurface aContext aFontFace aScaledFont aFontExtents | @@ -169,7 +168,7 @@ AeCairoContextTest >> testFontExtents [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testGlyphExtentsOf [ | aSurface aContext string aScaledFont aGlyphArray aTextExtents aFontFace | @@ -208,7 +207,7 @@ AeCairoContextTest >> testGlyphExtentsOf [ self assert: aTextExtents advance closeTo: 34@0 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testOperator [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -226,7 +225,7 @@ AeCairoContextTest >> testOperator [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testPathExtents [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -264,7 +263,7 @@ AeCairoContextTest >> testPathExtents [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testScaledFont [ | aSurface aContext aFontFace scaledFont17 scaledFont71 scaledFont17b | @@ -320,7 +319,7 @@ AeCairoContextTest >> testScaledFont [ equals: scaledFont71 getHandle ] -{ #category : 'tests' } +{ #category : #tests } AeCairoContextTest >> testStrokeExtents [ surface := AeCairoImageSurface extent: 100 @ 100. diff --git a/src/Alexandrie-Cairo-Tests/AeCairoConvertTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoConvertTest.class.st index 6fbc17c..64663d7 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoConvertTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoConvertTest.class.st @@ -1,11 +1,10 @@ Class { - #name : 'AeCairoConvertTest', - #superclass : 'AeCairoRenderTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoConvertTest, + #superclass : #AeCairoRenderTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoConvertTest >> surfaceWithDeviceScaleAsARGB32ImageSurface [ | radius center extent scale aSurface aContext | @@ -30,7 +29,7 @@ AeCairoConvertTest >> surfaceWithDeviceScaleAsARGB32ImageSurface [ ^ aSurface asARGB32ImageSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoConvertTest >> surfaceWithDeviceScaleAsAlphaChannelGrayscaleImage [ | radius center extent scale aSurface aContext | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoExamplesRenderTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoExamplesRenderTest.class.st index 96821d2..af8493a 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoExamplesRenderTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoExamplesRenderTest.class.st @@ -1,32 +1,31 @@ Class { - #name : 'AeCairoExamplesRenderTest', - #superclass : 'AeCairoRenderTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoExamplesRenderTest, + #superclass : #AeCairoRenderTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'convenience' } +{ #category : #convenience } AeCairoExamplesRenderTest class >> exportAll [ super exportAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoExamplesRenderTest class >> inspectAll [ super inspectAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoExamplesRenderTest class >> inspectMismatches [ super inspectMismatches ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithAllOperators [ "Catalog of cairo's compositing operators. @@ -85,7 +84,7 @@ AeCairoExamplesRenderTest >> surfaceWithAllOperators [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithColoredIcons [ | inputForm inputSurface outputColors outputSurface outputContext | @@ -114,7 +113,7 @@ AeCairoExamplesRenderTest >> surfaceWithColoredIcons [ ^ outputSurface ] -{ #category : 'tests - mesh gradient' } +{ #category : #'tests - mesh gradient' } AeCairoExamplesRenderTest >> surfaceWithCoonsPatch [ "See: https://blogs.igalia.com/dpino/2020/06/11/renderization-of-conic-gradients/" @@ -147,7 +146,7 @@ AeCairoExamplesRenderTest >> surfaceWithCoonsPatch [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithDeviceOffset [ | aSurface aSquare offsetPoint surfaceWidth surfaceHeight | @@ -185,7 +184,7 @@ AeCairoExamplesRenderTest >> surfaceWithDeviceOffset [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithDeviceScale [ | aSurface aSquare scalePoint surfaceWidth surfaceHeight | @@ -224,7 +223,7 @@ AeCairoExamplesRenderTest >> surfaceWithDeviceScale [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithDottedCircle [ "Cairo allows drawing strokes with dotted borders (either with circular dots, or squared dots). The trick is setting dash segments of length 0.0, followed by a non-zero segment. @@ -291,7 +290,7 @@ AeCairoExamplesRenderTest >> surfaceWithDottedCircle [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithEmulatedRadialGradient [ | aSurface context aPattern | @@ -316,7 +315,7 @@ AeCairoExamplesRenderTest >> surfaceWithEmulatedRadialGradient [ ^ aSurface ] -{ #category : 'tests - mesh gradient' } +{ #category : #'tests - mesh gradient' } AeCairoExamplesRenderTest >> surfaceWithGouraudBasedTriangle [ | aSurface aContext aMeshPattern | @@ -344,7 +343,7 @@ AeCairoExamplesRenderTest >> surfaceWithGouraudBasedTriangle [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithPixelatedIcon [ | iconForm iconSurface iconPattern scale aSurface aContext | @@ -383,7 +382,7 @@ AeCairoExamplesRenderTest >> surfaceWithPixelatedIcon [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithRoundedRectangle [ | extent aSurface aContext aRectangle | @@ -418,7 +417,7 @@ AeCairoExamplesRenderTest >> surfaceWithRoundedRectangle [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithShadowedCircleEmulatedBuffered [ "Emulate a Gaussian shadow on a circle using a radial gradient, using an intermediate surface." @@ -479,7 +478,7 @@ AeCairoExamplesRenderTest >> surfaceWithShadowedCircleEmulatedBuffered [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithShadowedCircleEmulatedDirect [ "Emulate a Gaussian shadow on a circle using a radial gradient." @@ -528,7 +527,7 @@ AeCairoExamplesRenderTest >> surfaceWithShadowedCircleEmulatedDirect [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithSphere [ "Emulate a sphere with a radial gradient, using an inner center different than the outer center." @@ -564,7 +563,7 @@ AeCairoExamplesRenderTest >> surfaceWithSphere [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithStraightEdgesCurve [ "Edges of the curve are straight. Reference: https://github.com/memononen/nanovg/issues/650" @@ -596,7 +595,7 @@ AeCairoExamplesRenderTest >> surfaceWithStraightEdgesCurve [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExamplesRenderTest >> surfaceWithStretchedIcon [ | aSurface aContext iconForm iconSurface iconPattern horizontalScale verticalScale | @@ -629,7 +628,7 @@ AeCairoExamplesRenderTest >> surfaceWithStretchedIcon [ ^ aSurface ] -{ #category : 'tests - text' } +{ #category : #'tests - text' } AeCairoExamplesRenderTest >> surfaceWithText [ | fontSize string surfaceSize aSurface aContext aFTLibrary aFTFace aScaledFont | @@ -666,7 +665,7 @@ AeCairoExamplesRenderTest >> surfaceWithText [ ^ aSurface ] -{ #category : 'tests - text' } +{ #category : #'tests - text' } AeCairoExamplesRenderTest >> surfaceWithTextAsPath [ | fontSize string surfaceSize aSurface aContext aFTLibrary aFTFace aFontFace glyphArray | @@ -704,7 +703,7 @@ AeCairoExamplesRenderTest >> surfaceWithTextAsPath [ ^ aSurface ] -{ #category : 'tests - text' } +{ #category : #'tests - text' } AeCairoExamplesRenderTest >> surfaceWithTextPixelated [ "The trick is: - Create special font options with full hinting and without anti-aliasing @@ -759,7 +758,7 @@ AeCairoExamplesRenderTest >> surfaceWithTextPixelated [ ^ aSurface ] -{ #category : 'tests - text' } +{ #category : #'tests - text' } AeCairoExamplesRenderTest >> surfaceWithToyAPISelectFontSlantWeight [ "Use `AeCairoContext>>selectFont:slant:weight:`, which cairo documentation considers 'toy API'." @@ -789,7 +788,7 @@ AeCairoExamplesRenderTest >> surfaceWithToyAPISelectFontSlantWeight [ ^ aSurface ] -{ #category : 'tests - text' } +{ #category : #'tests - text' } AeCairoExamplesRenderTest >> surfaceWithToyAPIShowText [ "Use `AeCairoContext>>#showText:`, which cairo documentation considers 'toy API'." diff --git a/src/Alexandrie-Cairo-Tests/AeCairoExportSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoExportSurfaceTest.class.st index b8391b5..a90fdb8 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoExportSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoExportSurfaceTest.class.st @@ -1,21 +1,20 @@ Class { - #name : 'AeCairoExportSurfaceTest', - #superclass : 'TestCase', + #name : #AeCairoExportSurfaceTest, + #superclass : #TestCase, #instVars : [ 'surface', 'target' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'testing' } +{ #category : #testing } AeCairoExportSurfaceTest class >> isAbstract [ ^ self == AeCairoExportSurfaceTest ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExportSurfaceTest >> assertExportsToTarget [ | aContext | @@ -48,7 +47,7 @@ AeCairoExportSurfaceTest >> assertExportsToTarget [ self assert: target size > 400 "Good enough as smoke test" ] -{ #category : 'running' } +{ #category : #running } AeCairoExportSurfaceTest >> ensureDeletePossibleTargets [ self targetInSubdirectory parent ensureDeleteAll. @@ -57,38 +56,38 @@ AeCairoExportSurfaceTest >> ensureDeletePossibleTargets [ ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoExportSurfaceTest >> fileName [ ^ self subclassResponsibility ] -{ #category : 'running' } +{ #category : #running } AeCairoExportSurfaceTest >> setUp [ super setUp. self ensureDeletePossibleTargets ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoExportSurfaceTest >> surfaceClass [ ^ self subclassResponsibility ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoExportSurfaceTest >> targetInCurrentWorkingDirectory [ ^ FileSystem workingDirectory / self fileName ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoExportSurfaceTest >> targetInSubdirectory [ ^ FileSystem workingDirectory / self utf8String / self fileName ] -{ #category : 'running' } +{ #category : #running } AeCairoExportSurfaceTest >> tearDown [ surface ifNotNil: #finish. @@ -96,7 +95,7 @@ AeCairoExportSurfaceTest >> tearDown [ super tearDown ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExportSurfaceTest >> testExportInCurrentWorkingDirectory [ target := self targetInCurrentWorkingDirectory. @@ -104,7 +103,7 @@ AeCairoExportSurfaceTest >> testExportInCurrentWorkingDirectory [ self assertExportsToTarget ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExportSurfaceTest >> testExportInSubdirectory [ target := self targetInSubdirectory. @@ -113,7 +112,7 @@ AeCairoExportSurfaceTest >> testExportInSubdirectory [ self assertExportsToTarget ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExportSurfaceTest >> testExportInUnexistentSubdirectoryFails [ target := self targetInSubdirectory. @@ -124,7 +123,7 @@ AeCairoExportSurfaceTest >> testExportInUnexistentSubdirectoryFails [ description: 'AeCairoStatusError: CAIRO_STATUS_WRITE_ERROR (error while writing to output stream)' ] -{ #category : 'tests' } +{ #category : #tests } AeCairoExportSurfaceTest >> testHasDevice [ "This kind of cairo surfaces don't have a device." @@ -135,7 +134,7 @@ AeCairoExportSurfaceTest >> testHasDevice [ self deny: surface hasDevice ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoExportSurfaceTest >> utf8String [ "Answer a filename (or directory name) that requires utf-8 encoding, to challenge the FFI bindings." diff --git a/src/Alexandrie-Cairo-Tests/AeCairoFreetypeTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoFreetypeTest.class.st index f6e512d..85d95dc 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoFreetypeTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoFreetypeTest.class.st @@ -1,6 +1,6 @@ Class { - #name : 'AeCairoFreetypeTest', - #superclass : 'TestCase', + #name : #AeCairoFreetypeTest, + #superclass : #TestCase, #instVars : [ 'aScaledFont', 'aFontFace', @@ -10,11 +10,10 @@ Class { 'cairoSurface', 'cairoContext' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'running' } +{ #category : #running } AeCairoFreetypeTest >> setUp [ super setUp. @@ -32,7 +31,7 @@ AeCairoFreetypeTest >> setUp [ ] -{ #category : 'running' } +{ #category : #running } AeCairoFreetypeTest >> tearDown [ { aScaledFont. aFontFace. aFTFace. aFTLibrary } do: #externallyFree. @@ -40,7 +39,7 @@ AeCairoFreetypeTest >> tearDown [ super tearDown ] -{ #category : 'tests' } +{ #category : #tests } AeCairoFreetypeTest >> testFontMatrix [ | retrievedScaledFont | @@ -54,7 +53,7 @@ AeCairoFreetypeTest >> testFontMatrix [ equals: aFontMatrix ] -{ #category : 'tests' } +{ #category : #tests } AeCairoFreetypeTest >> testScaleMatrix [ | retrievedScaledFont | @@ -68,7 +67,7 @@ AeCairoFreetypeTest >> testScaleMatrix [ equals: aFontMatrix ] -{ #category : 'tests' } +{ #category : #tests } AeCairoFreetypeTest >> testSetFontMatrix [ | retrievedScaledFont | @@ -88,7 +87,7 @@ AeCairoFreetypeTest >> testSetFontMatrix [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoFreetypeTest >> testSetFontSize [ | retrievedScaledFont | @@ -107,7 +106,7 @@ AeCairoFreetypeTest >> testSetFontSize [ equals: aFontMatrix ] -{ #category : 'tests' } +{ #category : #tests } AeCairoFreetypeTest >> testUserToDeviceMatrix [ | retrievedScaledFont | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoImageSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoImageSurfaceTest.class.st index 45f73ab..f717eda 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoImageSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoImageSurfaceTest.class.st @@ -1,14 +1,13 @@ Class { - #name : 'AeCairoImageSurfaceTest', - #superclass : 'TestCase', + #name : #AeCairoImageSurfaceTest, + #superclass : #TestCase, #instVars : [ 'surface' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testConvertZeroWidthAsFormARGB32 [ | aSurface aForm | @@ -20,7 +19,7 @@ AeCairoImageSurfaceTest >> testConvertZeroWidthAsFormARGB32 [ self assert: aForm extent equals: aSurface extent. ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testExtent [ surface := AeCairoImageSurface extent: 100 @ 50. @@ -28,7 +27,7 @@ AeCairoImageSurfaceTest >> testExtent [ self assert: surface extent equals: 100 @ 50 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testExtentFormat [ surface := AeCairoImageSurface @@ -38,7 +37,7 @@ AeCairoImageSurfaceTest >> testExtentFormat [ self assert: surface extent equals: 100 @ 50 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testFromForm [ | aForm | @@ -48,7 +47,7 @@ AeCairoImageSurfaceTest >> testFromForm [ self assert: surface extent equals: aForm extent ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testHasDevice [ surface := AeCairoImageSurface extent: 1 @ 1. @@ -56,7 +55,7 @@ AeCairoImageSurfaceTest >> testHasDevice [ self deny: surface hasDevice ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testHeight [ surface := AeCairoImageSurface extent: 100 @ 50. @@ -64,7 +63,7 @@ AeCairoImageSurfaceTest >> testHeight [ self assert: surface height equals: 50 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testNewForByteArray [ | extent format stride byteArray | @@ -89,7 +88,7 @@ AeCairoImageSurfaceTest >> testNewForByteArray [ surface externallyFree ] ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testNewForFFIExternalArray [ | extent format stride buffer | @@ -114,7 +113,7 @@ AeCairoImageSurfaceTest >> testNewForFFIExternalArray [ buffer free ] ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testNewSimilarImageFormatWidthHeight [ | aSimilarSurface | @@ -135,7 +134,7 @@ AeCairoImageSurfaceTest >> testNewSimilarImageFormatWidthHeight [ self assert: aSimilarSurface status isSuccess. ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testPremultipliedAlphaCanLooseInformation [ "The purpose of this test is showing that pixels with little alpha loose information due to Cairo's premultiplied-alpha." @@ -162,7 +161,7 @@ AeCairoImageSurfaceTest >> testPremultipliedAlphaCanLooseInformation [ self assert: (pixelValue byteAt: 4) equals: 1. "alpha" ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testPremultipliedAlphaConversionAsForm [ "Cairo uses premultiplied-alpha while Form uses straight-alpha" @@ -201,7 +200,7 @@ AeCairoImageSurfaceTest >> testPremultipliedAlphaConversionAsForm [ equals: aSurfaceBytes ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testPremultipliedAlphaConversionFromForm [ "Cairo uses premultiplied-alpha while Form uses straight-alpha" @@ -220,7 +219,7 @@ AeCairoImageSurfaceTest >> testPremultipliedAlphaConversionFromForm [ equals: aColor ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testReadNonASCIIFilenamePNG [ surface := AeCairoImageSurface newFromPngFileAt: AeFilesystemResources testsDirectory / 'import' / 'utf8-logō.png'. @@ -228,7 +227,7 @@ AeCairoImageSurfaceTest >> testReadNonASCIIFilenamePNG [ self assert: surface extent equals: 100 @ 34 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testStrideForWidthFormat [ self @@ -245,7 +244,7 @@ AeCairoImageSurfaceTest >> testStrideForWidthFormat [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testWidth [ surface := AeCairoImageSurface extent: 100 @ 50. @@ -253,7 +252,7 @@ AeCairoImageSurfaceTest >> testWidth [ self assert: surface width equals: 100 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoImageSurfaceTest >> testWriteNonASCIIFilenamePNG [ | aPNGFileReference | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoLibraryTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoLibraryTest.class.st index dcaa4e8..be840cc 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoLibraryTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoLibraryTest.class.st @@ -1,11 +1,10 @@ Class { - #name : 'AeCairoLibraryTest', - #superclass : 'TestCase', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoLibraryTest, + #superclass : #TestCase, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoLibraryTest >> testVersionString [ self diff --git a/src/Alexandrie-Cairo-Tests/AeCairoMatrixTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoMatrixTest.class.st index 62a404c..7f8f6fe 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoMatrixTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoMatrixTest.class.st @@ -2,16 +2,15 @@ An AeCairoMatrixTest is a test class for testing the behavior of AeCairoMatrix " Class { - #name : 'AeCairoMatrixTest', - #superclass : 'TestCase', + #name : #AeCairoMatrixTest, + #superclass : #TestCase, #instVars : [ 'matrix' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testBeMultiplicationOfBy [ | x y | @@ -40,7 +39,7 @@ AeCairoMatrixTest >> testBeMultiplicationOfBy [ closeTo: (AeCairoMatrix newX: 0.2 y: 0.6 sx: 0.6 sy: 1.2 shx: 1.0 shy: 1.8) ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testCopy [ | aCopy | @@ -60,7 +59,7 @@ AeCairoMatrixTest >> testCopy [ self assert: matrix shy equals: 0.6 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testCreation [ matrix := AeCairoMatrix newX: 0.1 y: 0.2 sx: 0.3 sy: 0.4 shx: 0.5 shy: 0.6. @@ -79,7 +78,7 @@ AeCairoMatrixTest >> testCreation [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testInverted [ | aMatrix invertedMatrix | @@ -102,7 +101,7 @@ AeCairoMatrixTest >> testInverted [ raise: AeCairoStatusError ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testIsIdentity [ matrix := AeCairoMatrix newIdentity. @@ -115,7 +114,7 @@ AeCairoMatrixTest >> testIsIdentity [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testNewFrom [ | aCopy | @@ -135,7 +134,7 @@ AeCairoMatrixTest >> testNewFrom [ self assert: matrix shy equals: 0.6 ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testNewRotationByRadians [ | radians | @@ -151,7 +150,7 @@ AeCairoMatrixTest >> testNewRotationByRadians [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testNewScalingBy [ matrix := AeCairoMatrix newScalingBy: 2@3. @@ -165,7 +164,7 @@ AeCairoMatrixTest >> testNewScalingBy [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testNewTranslationBy [ matrix := AeCairoMatrix newTranslationBy: 2@3. @@ -179,7 +178,7 @@ AeCairoMatrixTest >> testNewTranslationBy [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testPostMultiply [ | y | @@ -192,7 +191,7 @@ AeCairoMatrixTest >> testPostMultiply [ closeTo: (AeCairoMatrix newX: 0.1000 y: 0.2000 sx: 0.5828 sy: -0.2888 shx: 0.0177 shy: 0.6608) ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testPreMultiply [ | y | @@ -205,7 +204,7 @@ AeCairoMatrixTest >> testPreMultiply [ closeTo: (AeCairoMatrix newX: -0.1143 y: 0.1922 sx: -0.3428 sy: 0.6369 shx: -0.0664 shy: 0.5766) ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testRotateByRadians [ | radians | @@ -222,7 +221,7 @@ AeCairoMatrixTest >> testRotateByRadians [ ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testRotateTwice [ | radians | @@ -239,7 +238,7 @@ AeCairoMatrixTest >> testRotateTwice [ ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMatrixTest >> testScaleBy [ matrix := AeCairoMatrix newIdentity. @@ -254,7 +253,7 @@ AeCairoMatrixTest >> testScaleBy [ ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testScaleTwice [ matrix := AeCairoMatrix newScalingBy: 2@3. @@ -269,7 +268,7 @@ AeCairoMatrixTest >> testScaleTwice [ ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testTranslateBy [ matrix := AeCairoMatrix newIdentity. @@ -284,7 +283,7 @@ AeCairoMatrixTest >> testTranslateBy [ ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testTranslateTwice [ matrix := AeCairoMatrix newTranslationBy: 2@3. @@ -299,7 +298,7 @@ AeCairoMatrixTest >> testTranslateTwice [ ] -{ #category : 'test' } +{ #category : #test } AeCairoMatrixTest >> testValue [ "Formulas adapted from documentation. See: https://www.cairographics.org/manual/cairo-cairo-matrix-t.html" diff --git a/src/Alexandrie-Cairo-Tests/AeCairoMigratedRenderTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoMigratedRenderTest.class.st index bf68a80..85a5140 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoMigratedRenderTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoMigratedRenderTest.class.st @@ -11,34 +11,33 @@ Each test has a link on its comment, to trace the original source. " Class { - #name : 'AeCairoMigratedRenderTest', - #superclass : 'AeCairoRenderTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoMigratedRenderTest, + #superclass : #AeCairoRenderTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'convenience' } +{ #category : #convenience } AeCairoMigratedRenderTest class >> exportAll [ super exportAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoMigratedRenderTest class >> inspectAll [ super inspectAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoMigratedRenderTest class >> inspectMismatches [ super inspectMismatches ] -{ #category : 'private' } +{ #category : #private } AeCairoMigratedRenderTest >> drawTestPaintCheckeredOn: aContext [ "Based on the cairo_test_paint_checkered function, defined in cairo-test.c" @@ -57,7 +56,7 @@ AeCairoMigratedRenderTest >> drawTestPaintCheckeredOn: aContext [ ] ] -{ #category : 'private' } +{ #category : #private } AeCairoMigratedRenderTest >> newCheckSurfaceExtent: aPoint [ "Based on the _draw_check function, defined in cairo-test.c" @@ -89,7 +88,7 @@ AeCairoMigratedRenderTest >> newCheckSurfaceExtent: aPoint [ ^ aSurface ] -{ #category : 'private' } +{ #category : #private } AeCairoMigratedRenderTest >> newSurfaceExtent: aPoint [ ^ AeCairoImageSurface @@ -97,7 +96,7 @@ AeCairoMigratedRenderTest >> newSurfaceExtent: aPoint [ format: AeCairoSurfaceFormat argb32 ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillAndStroke [ "Tests using cairo_fill_preserve/cairo_stroke to fill/stroke the same path. @@ -131,7 +130,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillAndStroke [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillAndStrokeAlpha [ "Use a group to fill/stroke a path then blend the result with alpha onto the destination. @@ -186,7 +185,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillAndStrokeAlpha [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillAndStrokeAlphaAdd [ "Use a group to fill/stroke a path (each with different alpha) using DEST_OUT and ADD to combine. @@ -251,7 +250,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillAndStrokeAlphaAdd [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillDisjoint [ "Tests filling unsorted rectangles. @@ -287,7 +286,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillDisjoint [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillEmpty [ "Test filling with an empty path. @@ -323,7 +322,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillEmpty [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithFillMissedStop [ "Tests that the tessellator doesn't miss stop events when generating trapezoids. @@ -369,7 +368,7 @@ AeCairoMigratedRenderTest >> surfaceWithFillMissedStop [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGradientAlpha [ "Tests drawing of a gradient with various alpha values in the color stops. @@ -393,7 +392,7 @@ AeCairoMigratedRenderTest >> surfaceWithGradientAlpha [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGradientConstantAlpha [ "Tests drawing of a gradient with constant alpha values in the color stops. @@ -418,7 +417,7 @@ AeCairoMigratedRenderTest >> surfaceWithGradientConstantAlpha [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGradientZeroStops [ "Verifies that gradients with no stops don't cause problems. @@ -450,7 +449,7 @@ AeCairoMigratedRenderTest >> surfaceWithGradientZeroStops [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGradientZeroStopsMask [ "Verifies that gradients with no stops are considered clear. @@ -480,7 +479,7 @@ AeCairoMigratedRenderTest >> surfaceWithGradientZeroStopsMask [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGroupClip [ "Test preserving paths across groups. @@ -514,7 +513,7 @@ AeCairoMigratedRenderTest >> surfaceWithGroupClip [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGroupPaint [ "Based on: group-paint.c" @@ -537,7 +536,7 @@ AeCairoMigratedRenderTest >> surfaceWithGroupPaint [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithGroupUnaligned [ "Based on: group-unaligned.c" @@ -566,7 +565,7 @@ AeCairoMigratedRenderTest >> surfaceWithGroupUnaligned [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithInvertedClip [ "Clip + InvertedClip should be opaque. @@ -602,7 +601,7 @@ AeCairoMigratedRenderTest >> surfaceWithInvertedClip [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithMeshPatternConical [ "Paint a conical pattern using a mesh pattern. @@ -675,7 +674,7 @@ AeCairoMigratedRenderTest >> surfaceWithMeshPatternConical [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithMeshPatternOverlap [ "Paint a mesh pattern with a simple fold. @@ -716,7 +715,7 @@ AeCairoMigratedRenderTest >> surfaceWithMeshPatternOverlap [ ^ aSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoMigratedRenderTest >> surfaceWithOutsideClipping [ "Clipping outside a region. diff --git a/src/Alexandrie-Cairo-Tests/AeCairoPDFSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoPDFSurfaceTest.class.st index fadfb45..fb18db8 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoPDFSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoPDFSurfaceTest.class.st @@ -1,17 +1,16 @@ Class { - #name : 'AeCairoPDFSurfaceTest', - #superclass : 'AeCairoExportSurfaceTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoPDFSurfaceTest, + #superclass : #AeCairoExportSurfaceTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'accessing' } +{ #category : #accessing } AeCairoPDFSurfaceTest >> fileName [ ^ self utf8String, '.pdf' ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoPDFSurfaceTest >> surfaceClass [ ^ AeCairoPDFSurface diff --git a/src/Alexandrie-Cairo-Tests/AeCairoPatternSourceConvertedTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoPatternSourceConvertedTest.class.st index b5bf723..2118ef0 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoPatternSourceConvertedTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoPatternSourceConvertedTest.class.st @@ -1,15 +1,14 @@ Class { - #name : 'AeCairoPatternSourceConvertedTest', - #superclass : 'TestCase', + #name : #AeCairoPatternSourceConvertedTest, + #superclass : #TestCase, #instVars : [ 'surface', 'context' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoPatternSourceConvertedTest >> testLinearGradient [ | aLinearGradient | @@ -27,7 +26,7 @@ AeCairoPatternSourceConvertedTest >> testLinearGradient [ equals: AeCairoLinearGradientPattern ] -{ #category : 'tests' } +{ #category : #tests } AeCairoPatternSourceConvertedTest >> testMesh [ | meshPattern | @@ -42,7 +41,7 @@ AeCairoPatternSourceConvertedTest >> testMesh [ equals: AeCairoMeshPattern ] -{ #category : 'tests' } +{ #category : #tests } AeCairoPatternSourceConvertedTest >> testRadialGradient [ | aRadialGradient | @@ -62,7 +61,7 @@ AeCairoPatternSourceConvertedTest >> testRadialGradient [ equals: AeCairoRadialGradientPattern ] -{ #category : 'tests' } +{ #category : #tests } AeCairoPatternSourceConvertedTest >> testSolid [ surface := AeCairoImageSurface extent: 100 @ 100. @@ -73,7 +72,7 @@ AeCairoPatternSourceConvertedTest >> testSolid [ equals: AeCairoColorPattern ] -{ #category : 'tests' } +{ #category : #tests } AeCairoPatternSourceConvertedTest >> testSurface [ | tmpSurface | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoQuartzSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoQuartzSurfaceTest.class.st index e2ab778..ec91b3b 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoQuartzSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoQuartzSurfaceTest.class.st @@ -2,13 +2,12 @@ An AeCairoQuartzSurfaceTest is a test class for testing the behavior of AeCairoQuartzSurface " Class { - #name : 'AeCairoQuartzSurfaceTest', - #superclass : 'TestCase', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoQuartzSurfaceTest, + #superclass : #TestCase, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoQuartzSurfaceTest >> testItIsNotCurrentlySupported [ | aSurface | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceRenderTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceRenderTest.class.st index c7e247d..5721d7f 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceRenderTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceRenderTest.class.st @@ -1,32 +1,31 @@ Class { - #name : 'AeCairoRecordingSurfaceRenderTest', - #superclass : 'AeCairoRenderTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoRecordingSurfaceRenderTest, + #superclass : #AeCairoRenderTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'convenience' } +{ #category : #convenience } AeCairoRecordingSurfaceRenderTest class >> exportAll [ super exportAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoRecordingSurfaceRenderTest class >> inspectAll [ super inspectAll ] -{ #category : 'convenience' } +{ #category : #convenience } AeCairoRecordingSurfaceRenderTest class >> inspectMismatches [ super inspectMismatches ] -{ #category : 'tests' } +{ #category : #tests } AeCairoRecordingSurfaceRenderTest >> surfaceWithBounds [ | aRectangle aRecordingSurface targetSurface | @@ -72,7 +71,7 @@ AeCairoRecordingSurfaceRenderTest >> surfaceWithBounds [ ^ targetSurface ] -{ #category : 'tests' } +{ #category : #tests } AeCairoRecordingSurfaceRenderTest >> surfaceWithNoBounds [ | aRectangle aRecordingSurface targetSurface | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceTest.class.st index 0fffcc5..f946943 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoRecordingSurfaceTest.class.st @@ -1,11 +1,10 @@ Class { - #name : 'AeCairoRecordingSurfaceTest', - #superclass : 'TestCase', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoRecordingSurfaceTest, + #superclass : #TestCase, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'tests' } +{ #category : #tests } AeCairoRecordingSurfaceTest >> testInkExtentsInBoundedSurface [ | aRectangle aRecordingSurface | @@ -27,7 +26,7 @@ AeCairoRecordingSurfaceTest >> testInkExtentsInBoundedSurface [ equals: aRectangle "Stroke was clipped" ] -{ #category : 'tests' } +{ #category : #tests } AeCairoRecordingSurfaceTest >> testInkExtentsInUnboundedSurface [ | aRectangle aRecordingSurface | diff --git a/src/Alexandrie-Cairo-Tests/AeCairoRenderTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoRenderTest.class.st index e6d3798..24401ed 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoRenderTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoRenderTest.class.st @@ -1,23 +1,22 @@ Class { - #name : 'AeCairoRenderTest', - #superclass : 'AePixelMatchTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoRenderTest, + #superclass : #AePixelMatchTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'hooks' } +{ #category : #hooks } AeCairoRenderTest class >> allFormSelectors [ ^ self selectors select: [ :each | each beginsWith: 'surfaceWith' ] ] -{ #category : 'testing' } +{ #category : #testing } AeCairoRenderTest class >> isAbstract [ ^ self == AeCairoRenderTest ] -{ #category : 'hooks' } +{ #category : #hooks } AeCairoRenderTest >> expectedFormsDirectory [ ^ AeFilesystemResources cairoDirectory diff --git a/src/Alexandrie-Cairo-Tests/AeCairoSVGSurfaceTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoSVGSurfaceTest.class.st index 5950495..7fb4b65 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoSVGSurfaceTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoSVGSurfaceTest.class.st @@ -1,17 +1,16 @@ Class { - #name : 'AeCairoSVGSurfaceTest', - #superclass : 'AeCairoExportSurfaceTest', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoSVGSurfaceTest, + #superclass : #AeCairoExportSurfaceTest, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'accessing' } +{ #category : #accessing } AeCairoSVGSurfaceTest >> fileName [ ^ self utf8String, '.svg' ] -{ #category : 'accessing' } +{ #category : #accessing } AeCairoSVGSurfaceTest >> surfaceClass [ ^ AeCairoSVGSurface diff --git a/src/Alexandrie-Cairo-Tests/AeCairoStatusTest.class.st b/src/Alexandrie-Cairo-Tests/AeCairoStatusTest.class.st index b74fa3c..ffcaf26 100644 --- a/src/Alexandrie-Cairo-Tests/AeCairoStatusTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeCairoStatusTest.class.st @@ -2,13 +2,12 @@ An AeCairoStatusTest is a test class for testing the behavior of AeCairoStatus " Class { - #name : 'AeCairoStatusTest', - #superclass : 'TestCase', - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #name : #AeCairoStatusTest, + #superclass : #TestCase, + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'test' } +{ #category : #test } AeCairoStatusTest >> testSuccess [ | aSurface | @@ -26,7 +25,7 @@ AeCairoStatusTest >> testSuccess [ equals: 'no error has occurred' ] -{ #category : 'test' } +{ #category : #test } AeCairoStatusTest >> testUnsuccessfulCreation [ | anInvalidSurface anInvalidContext expectedStatusDescription | diff --git a/src/Alexandrie-Cairo-Tests/AeFilesystemResources.extension.st b/src/Alexandrie-Cairo-Tests/AeFilesystemResources.extension.st index 3c91745..248fde9 100644 --- a/src/Alexandrie-Cairo-Tests/AeFilesystemResources.extension.st +++ b/src/Alexandrie-Cairo-Tests/AeFilesystemResources.extension.st @@ -1,6 +1,6 @@ -Extension { #name : 'AeFilesystemResources' } +Extension { #name : #AeFilesystemResources } -{ #category : '*Alexandrie-Cairo-Tests' } +{ #category : #'*Alexandrie-Cairo-Tests' } AeFilesystemResources class >> cairoDirectory [ ^ self testsDirectory / 'cairo' diff --git a/src/Alexandrie-Cairo-Tests/AeUTF8ConverterTest.class.st b/src/Alexandrie-Cairo-Tests/AeUTF8ConverterTest.class.st index f245f0e..be8c851 100644 --- a/src/Alexandrie-Cairo-Tests/AeUTF8ConverterTest.class.st +++ b/src/Alexandrie-Cairo-Tests/AeUTF8ConverterTest.class.st @@ -1,21 +1,20 @@ Class { - #name : 'AeUTF8ConverterTest', - #superclass : 'TestCase', + #name : #AeUTF8ConverterTest, + #superclass : #TestCase, #instVars : [ 'converter' ], - #category : 'Alexandrie-Cairo-Tests', - #package : 'Alexandrie-Cairo-Tests' + #category : #'Alexandrie-Cairo-Tests' } -{ #category : 'running' } +{ #category : #running } AeUTF8ConverterTest >> setUp [ super setUp. converter := AeUTF8Converter new ] -{ #category : 'tests' } +{ #category : #tests } AeUTF8ConverterTest >> testConvertByteString [ converter convert: 'aßc'. @@ -36,7 +35,7 @@ AeUTF8ConverterTest >> testConvertByteString [ self assert: (converter buffer first: 3) equals: #[195 159 99] ] -{ #category : 'tests' } +{ #category : #tests } AeUTF8ConverterTest >> testConvertWideString [ "Test encoding with a Greek delta letter. This one: https://en.wikipedia.org/wiki/Delta_(letter)" @@ -61,7 +60,7 @@ AeUTF8ConverterTest >> testConvertWideString [ self assert: (converter buffer first: 3) equals: #[206 148 99] ] -{ #category : 'tests' } +{ #category : #tests } AeUTF8ConverterTest >> testReuse [ converter convert: 'ßa'. diff --git a/src/Alexandrie-Cairo-Tests/package.st b/src/Alexandrie-Cairo-Tests/package.st index e5bdc4b..d16d3b0 100644 --- a/src/Alexandrie-Cairo-Tests/package.st +++ b/src/Alexandrie-Cairo-Tests/package.st @@ -1 +1 @@ -Package { #name : 'Alexandrie-Cairo-Tests' } +Package { #name : #'Alexandrie-Cairo-Tests' } diff --git a/tests/fonts/NotoEmoji/LICENSE_OFL.txt b/tests/fonts/NotoEmoji/LICENSE_OFL.txt new file mode 100644 index 0000000..d952d62 --- /dev/null +++ b/tests/fonts/NotoEmoji/LICENSE_OFL.txt @@ -0,0 +1,92 @@ +This Font Software is licensed under the SIL Open Font License, +Version 1.1. + +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to +provide a free and open framework in which fonts may be shared and +improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software +components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, +deleting, or substituting -- in part or in whole -- any of the +components of the Original Version, by changing formats or by porting +the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, +modify, redistribute, and sell modified and unmodified copies of the +Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in +Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the +corresponding Copyright Holder. This restriction only applies to the +primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created using +the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/tests/fonts/NotoEmoji/NotoEmoji-Regular.ttf b/tests/fonts/NotoEmoji/NotoEmoji-Regular.ttf new file mode 100644 index 0000000..19b7bad Binary files /dev/null and b/tests/fonts/NotoEmoji/NotoEmoji-Regular.ttf differ diff --git a/tests/fonts/NotoEmoji/README b/tests/fonts/NotoEmoji/README new file mode 100644 index 0000000..15abba2 --- /dev/null +++ b/tests/fonts/NotoEmoji/README @@ -0,0 +1,15 @@ +This package is part of the noto project. Visit +google.com/get/noto for more information. + +Built on 2017-10-24 from the following noto repository: +----- +Repo: noto-emoji +Tag: v2017-09-13-design-refresh +Date: 2017-09-20 10:08:23 GMT +Commit: d5ac67b140cc63aa512bbb3d164e15737dd97564 + +Update color emoji font and assets for new design. + +This design is the one used in Android O. + +The blobs are dead. Long live the blobs.