From 34e8a9c80770f4983a79aebe9aab4e598db99477 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Tue, 8 Mar 2022 13:41:35 -0800 Subject: [PATCH] Correct polyline bounds test (flutter/engine#64) --- engine/src/flutter/impeller/geometry/geometry_unittests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/geometry/geometry_unittests.cc b/engine/src/flutter/impeller/geometry/geometry_unittests.cc index ef431240f69..843b6b59ff5 100644 --- a/engine/src/flutter/impeller/geometry/geometry_unittests.cc +++ b/engine/src/flutter/impeller/geometry/geometry_unittests.cc @@ -856,7 +856,7 @@ TEST(GeometryTest, PolylineGetContourPointBoundsReturnsCorrectRanges) { TEST(GeometryTest, PolylineGetContourOutOfBoundsAborts) { Path::Polyline polyline = PathBuilder{}.AddLine({100, 100}, {200, 100}).TakePath().CreatePolyline(); - ASSERT_EQ(polyline.GetContourPointBounds(0), std::make_tuple(2u, 2u)); + ASSERT_EQ(polyline.GetContourPointBounds(0), std::make_tuple(0u, 2u)); ASSERT_EQ(polyline.GetContourPointBounds(14), std::make_tuple(2u, 2u)); }