Correct polyline bounds test (flutter/engine#64)

This commit is contained in:
Brandon DeRosier 2022-03-08 13:41:35 -08:00 committed by Dan Field
parent 615d4e8413
commit 34e8a9c807

View File

@ -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));
}