Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d936d50

Browse files
Change some of the tests to cover the default case with no rotation.
1 parent 985bee6 commit d936d50

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/web_ui/test/html/shaders/gradient_golden_test.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Future<void> testMain() async {
8080
GradientSweep sweepGradient = GradientSweep(const Offset(0.5, 0.5),
8181
colors, stops, TileMode.clamp,
8282
0, 360.0 / 180.0 * math.pi,
83-
Matrix4.rotationZ(math.pi / 6.0).storage);
83+
null);
8484

8585
final GradientSweep sweepGradientRotated = GradientSweep(const Offset(0.5, 0.5),
8686
colors, stops, TileMode.clamp,
@@ -105,7 +105,7 @@ Future<void> testMain() async {
105105
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
106106
colors, stops, TileMode.clamp,
107107
math.pi / 6, 3 * math.pi / 4,
108-
Matrix4.rotationZ(math.pi / 6.0).storage);
108+
null);
109109

110110
rectBounds = rectBounds.translate(kBoxWidth + 10, 0);
111111
canvas.drawRect(rectBounds,
@@ -117,7 +117,7 @@ Future<void> testMain() async {
117117
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
118118
colors, stops, TileMode.repeated,
119119
math.pi / 6, 3 * math.pi / 4,
120-
Matrix4.rotationZ(math.pi / 6.0).storage);
120+
null);
121121

122122
canvas.drawRect(rectBounds,
123123
SurfacePaint()..shader = engineGradientToShader(sweepGradient, rectBounds));
@@ -128,7 +128,7 @@ Future<void> testMain() async {
128128
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
129129
colors, stops, TileMode.mirror,
130130
math.pi / 6, 3 * math.pi / 4,
131-
Matrix4.rotationZ(math.pi / 6.0).storage);
131+
null);
132132
canvas.drawRect(rectBounds,
133133
SurfacePaint()..shader = engineGradientToShader(sweepGradient, rectBounds));
134134
canvas.drawRect(rectBounds, borderPaint);
@@ -159,7 +159,7 @@ Future<void> testMain() async {
159159
GradientSweep sweepGradient = GradientSweep(const Offset(0.5, 0.5),
160160
colors, stops, TileMode.clamp,
161161
0, 360.0 / 180.0 * math.pi,
162-
Matrix4.rotationZ(math.pi / 6.0).storage);
162+
null);
163163

164164
final GradientSweep sweepGradientRotated = GradientSweep(const Offset(0.5, 0.5),
165165
colors, stops, TileMode.clamp,
@@ -184,7 +184,7 @@ Future<void> testMain() async {
184184
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
185185
colors, stops, TileMode.clamp,
186186
math.pi / 6, 3 * math.pi / 4,
187-
Matrix4.rotationZ(math.pi / 6.0).storage);
187+
null);
188188

189189
rectBounds = rectBounds.translate(kBoxWidth + 10, 0);
190190
canvas.drawOval(rectBounds,
@@ -196,7 +196,7 @@ Future<void> testMain() async {
196196
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
197197
colors, stops, TileMode.repeated,
198198
math.pi / 6, 3 * math.pi / 4,
199-
Matrix4.rotationZ(math.pi / 6.0).storage);
199+
null);
200200

201201
canvas.drawOval(rectBounds,
202202
SurfacePaint()..shader = engineGradientToShader(sweepGradient, rectBounds));
@@ -207,7 +207,7 @@ Future<void> testMain() async {
207207
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
208208
colors, stops, TileMode.mirror,
209209
math.pi / 6, 3 * math.pi / 4,
210-
Matrix4.rotationZ(math.pi / 6.0).storage);
210+
null);
211211
canvas.drawOval(rectBounds,
212212
SurfacePaint()..shader = engineGradientToShader(sweepGradient, rectBounds));
213213
canvas.drawRect(rectBounds, borderPaint);
@@ -238,7 +238,7 @@ Future<void> testMain() async {
238238
GradientSweep sweepGradient = GradientSweep(const Offset(0.5, 0.5),
239239
colors, stops, TileMode.clamp,
240240
0, 360.0 / 180.0 * math.pi,
241-
Matrix4.rotationZ(math.pi / 6.0).storage);
241+
null);
242242

243243
final GradientSweep sweepGradientRotated = GradientSweep(const Offset(0.5, 0.5),
244244
colors, stops, TileMode.clamp,
@@ -265,7 +265,7 @@ Future<void> testMain() async {
265265
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
266266
colors, stops, TileMode.clamp,
267267
math.pi / 6, 3 * math.pi / 4,
268-
Matrix4.rotationZ(math.pi / 6.0).storage);
268+
null);
269269

270270
rectBounds = rectBounds.translate(kBoxWidth + 10, 0);
271271
path = samplePathFromRect(rectBounds);
@@ -278,7 +278,7 @@ Future<void> testMain() async {
278278
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
279279
colors, stops, TileMode.repeated,
280280
math.pi / 6, 3 * math.pi / 4,
281-
Matrix4.rotationZ(math.pi / 6.0).storage);
281+
null);
282282

283283
path = samplePathFromRect(rectBounds);
284284
canvas.drawPath(path,
@@ -290,7 +290,7 @@ Future<void> testMain() async {
290290
sweepGradient = GradientSweep(const Offset(0.5, 0.5),
291291
colors, stops, TileMode.mirror,
292292
math.pi / 6, 3 * math.pi / 4,
293-
Matrix4.rotationZ(math.pi / 6.0).storage);
293+
null);
294294
path = samplePathFromRect(rectBounds);
295295
canvas.drawPath(path,
296296
SurfacePaint()..shader = engineGradientToShader(sweepGradient, rectBounds));

0 commit comments

Comments
 (0)