@@ -502,10 +502,9 @@ TEST_F(EntityTest, BlendingModeOptions) {
502502 // test GUI.
503503
504504 const Entity::BlendMode b{};
505- static_assert (
506- b == Entity::BlendMode::kClear ); // Ensure the first item in
507- // the switch is the first
508- // item in the enum.
505+ static_assert (b == Entity::BlendMode::kClear ); // Ensure the first item in
506+ // the switch is the first
507+ // item in the enum.
509508 switch (b) {
510509 case Entity::BlendMode::kClear :
511510 blend_mode_names.push_back (" Clear" );
@@ -521,8 +520,7 @@ TEST_F(EntityTest, BlendingModeOptions) {
521520 blend_mode_values.push_back (Entity::BlendMode::kSourceOver );
522521 case Entity::BlendMode::kDestinationOver :
523522 blend_mode_names.push_back (" DestinationOver" );
524- blend_mode_values.push_back (
525- Entity::BlendMode::kDestinationOver );
523+ blend_mode_values.push_back (Entity::BlendMode::kDestinationOver );
526524 };
527525 }
528526
@@ -534,9 +532,8 @@ TEST_F(EntityTest, BlendingModeOptions) {
534532 ImGui::SetNextWindowPos ({200 , 450 });
535533 }
536534
537- auto draw_rect = [&context, &pass](
538- Rect rect, Color color,
539- Entity::BlendMode blend_mode) -> bool {
535+ auto draw_rect = [&context, &pass](Rect rect, Color color,
536+ Entity::BlendMode blend_mode) -> bool {
540537 using VS = SolidFillPipeline::VertexShader;
541538 VertexBufferBuilder<VS::PerVertexData> vtx_builder;
542539 {
@@ -579,8 +576,7 @@ TEST_F(EntityTest, BlendingModeOptions) {
579576 blend_mode_names.data (), blend_mode_names.size ());
580577 ImGui::End ();
581578
582- Entity::BlendMode selected_mode =
583- blend_mode_values[current_blend_index];
579+ Entity::BlendMode selected_mode = blend_mode_values[current_blend_index];
584580
585581 Point a, b, c, d;
586582 std::tie (a, b) = IMPELLER_PLAYGROUND_LINE (
@@ -601,5 +597,29 @@ TEST_F(EntityTest, BlendingModeOptions) {
601597 ASSERT_TRUE (OpenPlaygroundHere (callback));
602598}
603599
600+ TEST_F (EntityTest, BezierCircleScaled) {
601+ Entity entity;
602+ auto path = PathBuilder{}
603+ .MoveTo ({97.325 , 34.818 })
604+ .CubicCurveTo ({98.50862885295136 , 34.81812293973836 },
605+ {99.46822048142015 , 33.85863261475589 },
606+ {99.46822048142015 , 32.67499810206613 })
607+ .CubicCurveTo ({99.46822048142015 , 31.491363589376355 },
608+ {98.50862885295136 , 30.53187326439389 },
609+ {97.32499434685802 , 30.531998226542708 })
610+ .CubicCurveTo ({96.14153655073771 , 30.532123170035373 },
611+ {95.18222070648729 , 31.491540299350355 },
612+ {95.18222070648729 , 32.67499810206613 })
613+ .CubicCurveTo ({95.18222070648729 , 33.85845590478189 },
614+ {96.14153655073771 , 34.81787303409686 },
615+ {97.32499434685802 , 34.81799797758954 })
616+ .Close ()
617+ .TakePath ();
618+ entity.SetPath (path);
619+ entity.SetTransformation (Matrix::MakeScale ({20.0 , 20.0 , 1.0 }).Translate ({-80 , -15 , 0 }));
620+ entity.SetContents (SolidColorContents::Make (Color::Red ()));
621+ ASSERT_TRUE (OpenPlaygroundHere (entity));
622+ }
623+
604624} // namespace testing
605625} // namespace impeller
0 commit comments