qt5base-lts/tests/auto/other/lancelot/scripts/beziers.qps
aavit 03967c4f0b Adjust autotest files for raster engine to new default pen
Fix those test scripts that assumed cosmetic default pen, and
improve testing coverage of cosmetic vs non-cosmetic pens in general.
Ref. I04d910e9700baf7f13a8aac07a3633014bb9283e

Change-Id: I2bb3525c21a8e9c8dd1f16e7dcd225195df43c1b
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
2012-10-26 11:53:12 +02:00

149 lines
2.5 KiB
Plaintext

# Version: 1
# CheckVsReference: 5%
setRenderHint LineAntialiasing
setPen green 0
translate 20 20
path_moveTo fullSize 0 0
path_cubicTo fullSize 200 100 -100 100 100 0
path_moveTo fullSize 0 200
path_cubicTo fullSize 0 100 100 100 100 200
path_moveTo fullSize 0 250
path_cubicTo fullSize 50 200 50 200 100 250
drawPath fullSize
translate 110 0
scale 10 10
path_moveTo medSize 0 0
path_cubicTo medSize 20 10 -10 10 10 0
path_moveTo medSize 0 20
path_cubicTo medSize 0 10 10 10 10 20
path_moveTo medSize 0 25
path_cubicTo medSize 5 20 5 20 10 25
drawPath medSize
resetMatrix
translate 240 20
scale 100 100
path_moveTo smallSize 0 0
path_cubicTo smallSize 2 1 -1 1 1 0
path_moveTo smallSize 0 2
path_cubicTo smallSize 0 1 1 1 1 2
path_moveTo smallSize 0 2.5
path_cubicTo smallSize 0.5 2 0.5 2 1 2.5
drawPath smallSize
resetMatrix
translate 20 300
drawPath medSize
resetMatrix
translate 250 -100
path_moveTo maxSize 0 500
path_cubicTo maxSize 1000 0 -500 0 500 500
drawPath maxSize
setRenderHint Antialiasing off
resetMatrix
path_moveTo path1 0 0
path_cubicTo path1 10 10 0 10 10 0
path_moveTo path2 0 0
path_cubicTo path2 15 15 -5 15 10 0
path_moveTo path3 0 0
path_cubicTo path3 20 20 -10 20 10 0
path_moveTo path4 0 0
path_cubicTo path4 0 5 10 10 0 15
path_moveTo path5 0 10
path_cubicTo path5 10 10 -10 20 0 0
path_moveTo path6 0 0
path_cubicTo path6 10 5 -10 10 0 15
setPen black 2
setBrush nobrush
translate 10 500
scale 3 3
begin_block paths
save
drawPath path1
translate 20 0
drawPath path2
translate 20 0
drawPath path3
translate 20 0
drawPath path4
translate 20 0
drawPath path5
translate 20 0
drawPath path6
restore
end_block
setPen nopen
setBrush black
translate 0 20
repeat_block paths
setRenderHint Antialiasing
setPen black 2
setBrush nobrush
translate 120 -20
repeat_block paths
setPen nopen
setBrush black
translate 0 20
repeat_block paths
resetMatrix
path_moveTo miterPath 20 0
path_cubicTo miterPath 20 20 0 0 1 0
path_lineTo miterPath -1 -0.2
setBrush nobrush
translate 50 660
scale 5 5
setPen black 4 solidline flatcap miterjoin
drawPath miterPath
setPen red 0
drawPath miterPath
path_moveTo miterPath2 21 0.2
path_lineTo miterPath2 19 0
path_cubicTo miterPath2 20 0 0 20 0 0
translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath miterPath2
setPen red 0
drawPath miterPath2
path_moveTo wonkyPath 0 0
path_cubicTo wonkyPath 5 15 20 0 17 0
translate 30 0
setPen black 4 solidline flatcap miterjoin
drawPath wonkyPath
setPen red 0
drawPath wonkyPath