qt5base-lts/tests/auto/other/lancelot/scripts/pens_cosmetic.qps
Jo Asplin 9acec431c3 Moved integrationtests/* into other/
Currently there seems to be no precise definition of what
an integrationtest is in the context of Qt testing.

To avoid confusion, the tests under integrationtests/ are
moved into other/ (which is effectively where we keep
tests that don't clearly fit into any other category).

Tests can be moved back into an integrationtests/ directory
at a later point, should an unambiguous definition be established.

Change-Id: I3bb289be2dc2aca11b51a8ce8fcc5942f06d6c5c
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
2011-11-30 09:30:22 +01:00

110 lines
1.9 KiB
Plaintext

# Version: 1
# CheckVsReference: 1% (0 0 585 470)
path_addEllipse path 22 0 7 7
path_addRect path 25 5 4 4
translate 20 20
begin_block lines
save
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
translate 100 0
save
scale 4 1
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
translate 200 0
save
scale 1 4
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
translate 100 0
save
scale 4 4
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
restore
end_block
drawText 580 15 "non-cosmetic, 0-width"
translate 0 50
setPen black 2
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"
translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"
setRenderHint Antialiasing
translate 0 20
translate 0 50
setPen black 0
repeat_block lines
drawText 580 15 "non-cosmetic, 0-width"
translate 0 50
setPen black 2
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"
translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"
translate 0 70
drawText 0 0 "scale(1, 1)"
drawText 150 0 "scale(4, 1)"
drawText 300 0 "scale(1, 4)"
drawText 450 0 "scale(4, 4)"