mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
[units] Ensure we don't have ponies
The documentation states we should not parse ponies. Even with those with exclamation marks. Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
19c6879960
commit
80b3a8d328
@ -72,7 +72,7 @@ test_units_string (TestConformSimpleFixture *fixture,
|
||||
g_assert (clutter_units_get_unit_type (&units) == CLUTTER_UNIT_POINT);
|
||||
g_assert_cmpfloat (clutter_units_get_unit_value (&units), ==, 0.5f);
|
||||
|
||||
g_assert (clutter_units_from_string (&units, "1 pony") == FALSE);
|
||||
g_assert (clutter_units_from_string (&units, "1 omg!!pony") == FALSE);
|
||||
|
||||
clutter_units_from_pt (&units, 24.0);
|
||||
string = clutter_units_to_string (&units);
|
||||
|
Loading…
Reference in New Issue
Block a user