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

Commit 93cd484

Browse files
committed
Move test
1 parent d840eaf commit 93cd484

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

impeller/aiks/aiks_path_unittests.cc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,5 +398,37 @@ TEST_P(AiksTest, CanRenderClips) {
398398
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
399399
}
400400

401+
TEST_P(AiksTest, CanRenderOverlappingMultiContourPath) {
402+
Canvas canvas;
403+
404+
Paint paint;
405+
paint.color = Color::Red();
406+
407+
PathBuilder::RoundingRadii radii;
408+
radii.top_left = {50, 50};
409+
radii.top_right = {50, 50};
410+
radii.bottom_right = {50, 50};
411+
radii.bottom_left = {50, 50};
412+
413+
const Scalar kTriangleHeight = 100;
414+
canvas.Translate(Vector2(200, 200));
415+
// Form a path similar to the Material drop slider value indicator.
416+
auto path =
417+
PathBuilder{}
418+
.MoveTo({0, kTriangleHeight})
419+
.LineTo({-kTriangleHeight / 2.0f, 0})
420+
.LineTo({kTriangleHeight / 2.0f, 0})
421+
.Close()
422+
.AddRoundedRect(
423+
Rect::MakeXYWH(-kTriangleHeight / 2.0f, -kTriangleHeight / 2.0f,
424+
kTriangleHeight, kTriangleHeight),
425+
radii)
426+
.TakePath();
427+
428+
canvas.DrawPath(path, paint);
429+
430+
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
431+
}
432+
401433
} // namespace testing
402434
} // namespace impeller

impeller/aiks/aiks_unittests.cc

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,37 +3564,5 @@ TEST_P(AiksTest, CorrectClipDepthAssignedToEntities) {
35643564
}
35653565
}
35663566

3567-
TEST_P(AiksTest, CanRenderOverlappingMultiContourPath) {
3568-
Canvas canvas;
3569-
3570-
Paint paint;
3571-
paint.color = Color::Red();
3572-
3573-
PathBuilder::RoundingRadii radii;
3574-
radii.top_left = {50, 50};
3575-
radii.top_right = {50, 50};
3576-
radii.bottom_right = {50, 50};
3577-
radii.bottom_left = {50, 50};
3578-
3579-
const Scalar kTriangleHeight = 100;
3580-
canvas.Translate(Vector2(200, 200));
3581-
// Form a path similar to the Material drop slider value indicator.
3582-
auto path =
3583-
PathBuilder{}
3584-
.MoveTo({0, kTriangleHeight})
3585-
.LineTo({-kTriangleHeight / 2.0f, 0})
3586-
.LineTo({kTriangleHeight / 2.0f, 0})
3587-
.Close()
3588-
.AddRoundedRect(
3589-
Rect::MakeXYWH(-kTriangleHeight / 2.0f, -kTriangleHeight / 2.0f,
3590-
kTriangleHeight, kTriangleHeight),
3591-
radii)
3592-
.TakePath();
3593-
3594-
canvas.DrawPath(path, paint);
3595-
3596-
ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
3597-
}
3598-
35993567
} // namespace testing
36003568
} // namespace impeller

0 commit comments

Comments
 (0)