Skip to content

Commit 312bb75

Browse files
committed
Simplify canvas shadow test
1 parent 4f33bae commit 312bb75

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed
-36.2 KB
Loading

sdk/python/packages/flet/integration_tests/controls/test_canvas.py

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -104,34 +104,20 @@ async def test_draw_shadow(flet_app: ftt.FletTestApp, request):
104104
x=0,
105105
y=0,
106106
elements=[
107-
fc.Path.MoveTo(x=75, y=40),
108-
fc.Path.CubicTo(
109-
cp1x=75, cp1y=37, cp2x=70, cp2y=25, x=50, y=25
110-
),
111-
fc.Path.CubicTo(
112-
cp1x=20, cp1y=25, cp2x=20, cp2y=62.5, x=20, y=62.5
113-
),
114-
fc.Path.CubicTo(
115-
cp1x=20, cp1y=80, cp2x=40, cp2y=102, x=75, y=120
116-
),
117-
fc.Path.CubicTo(
118-
cp1x=110, cp1y=102, cp2x=130, cp2y=80, x=130, y=62.5
119-
),
120-
fc.Path.CubicTo(
121-
cp1x=130, cp1y=62.5, cp2x=130, cp2y=25, x=100, y=25
122-
),
123-
fc.Path.CubicTo(
124-
cp1x=85, cp1y=25, cp2x=75, cp2y=37, x=75, y=40
125-
),
107+
fc.Path.MoveTo(x=10, y=10),
108+
fc.Path.LineTo(x=40, y=10),
109+
fc.Path.LineTo(x=40, y=40),
110+
fc.Path.LineTo(x=10, y=40),
111+
fc.Path.LineTo(x=10, y=10),
126112
],
127113
),
128114
],
129115
color=ft.Colors.PINK,
130-
elevation=10,
116+
elevation=1,
131117
)
132118
],
133-
width=150,
134-
height=150,
119+
width=50,
120+
height=50,
135121
),
136122
)
137123

0 commit comments

Comments
 (0)