mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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:
parent
1880e22229
commit
e06daa58c3
@ -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,
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user