mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Correct polyline bounds test (flutter/engine#64)
This commit is contained in:
parent
615d4e8413
commit
34e8a9c807
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user