mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Adapt tests to new path builder behavior
Some tests were expecting to get elevated curves from GskPathBuilder. But they won't, anymore.
This commit is contained in:
parent
7e13cfea91
commit
ecfc661054
@ -1,4 +1,4 @@
|
||||
fill {
|
||||
path: "M 0 0 O 10 10 20 20 5";
|
||||
path: "M 0 0 O 10 0 20 20 5";
|
||||
fill-rule: even-odd;
|
||||
}
|
||||
|
@ -4,6 +4,6 @@ fill {
|
||||
color: rgb(255,0,204);
|
||||
}
|
||||
path: "\
|
||||
M 0 0 O 10 10, 20 20, 5";
|
||||
M 0 0 O 10 0, 20 20, 5";
|
||||
fill-rule: even-odd;
|
||||
}
|
||||
|
@ -426,10 +426,23 @@ test_foreach (void)
|
||||
path2 = gsk_path_builder_free_to_path (builder);
|
||||
s2 = gsk_path_to_string (path2);
|
||||
|
||||
g_assert_cmpstr (sp, ==, s2);
|
||||
/* We still end up with quads here, since GskPathBuilder aggressively reduces
|
||||
* curves degrees.
|
||||
*/
|
||||
g_assert_cmpstr (s, ==, s2);
|
||||
|
||||
gsk_path_unref (path2);
|
||||
g_free (s2);
|
||||
|
||||
path2 = gsk_path_parse (sp);
|
||||
s2 = gsk_path_to_string (path2);
|
||||
|
||||
g_assert_cmpstr (s, ==, s2);
|
||||
|
||||
gsk_path_unref (path2);
|
||||
g_free (s2);
|
||||
|
||||
gsk_path_unref (path);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user