[gtk/path-work-rebased] curve test: Fix the split test



commit f9b8af60dd480767cfdf34e9402e349ee1372909
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 21 19:47:25 2022 -0400

    curve test: Fix the split test
    
    We were misinterpreting the return value of
    gsk_path_measure_get_closest_point.

 testsuite/gsk/curve.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/gsk/curve.c b/testsuite/gsk/curve.c
index 2df12f0d5b..1d6cb73f40 100644
--- a/testsuite/gsk/curve.c
+++ b/testsuite/gsk/curve.c
@@ -485,11 +485,13 @@ test_curve_split (void)
           float dist;
 
           gsk_curve_get_point (&c1, k/19.0, &q);
-          dist = gsk_path_measure_get_closest_point (measure, &q, NULL);
+          gsk_path_measure_get_closest_point_full (measure, &q, INFINITY,
+                                                   &dist, NULL, NULL, NULL);
           g_assert_cmpfloat (dist, <=, 0.2);
 
           gsk_curve_get_point (&c2, k/19.0, &q);
-          dist = gsk_path_measure_get_closest_point (measure, &q, NULL);
+          gsk_path_measure_get_closest_point_full (measure, &q, INFINITY,
+                                                   &dist, NULL, NULL, NULL);
           g_assert_cmpfloat (dist, <=, 0.2);
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]