tests/monitor-transform: Test only valid enums

This test was introduces assuming we'd do interger math outside
of `meta-monitor-transform`. We later agreed to not do that and require
valid enums, but forgot to remove the corresponding test case.

Test the corresponding valid enums instead of negative ones.

See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1064

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1234
This commit is contained in:
Robert Mader 2020-05-08 21:13:55 +02:00
parent 1880e22229
commit e06daa58c3

View File

@ -62,22 +62,22 @@ test_transform (void)
},
{
.transform = META_MONITOR_TRANSFORM_NORMAL,
.other = -META_MONITOR_TRANSFORM_90,
.other = META_MONITOR_TRANSFORM_270,
.expect = META_MONITOR_TRANSFORM_270,
},
{
.transform = META_MONITOR_TRANSFORM_FLIPPED,
.other = -META_MONITOR_TRANSFORM_90,
.other = META_MONITOR_TRANSFORM_270,
.expect = META_MONITOR_TRANSFORM_FLIPPED_270,
},
{
.transform = META_MONITOR_TRANSFORM_FLIPPED_180,
.other = -META_MONITOR_TRANSFORM_270,
.other = META_MONITOR_TRANSFORM_90,
.expect = META_MONITOR_TRANSFORM_FLIPPED_270,
},
{
.transform = META_MONITOR_TRANSFORM_FLIPPED_180,
.other = -META_MONITOR_TRANSFORM_FLIPPED_180,
.other = META_MONITOR_TRANSFORM_FLIPPED_180,
.expect = META_MONITOR_TRANSFORM_NORMAL,
},
};