From 64544a572698b2df5520783203f9723a2dfcac12 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 5 Feb 2025 10:36:46 +0300 Subject: tab indicator: Add position setting --- src/layout/tests.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/layout/tests.rs') diff --git a/src/layout/tests.rs b/src/layout/tests.rs index dee23fc0..83fef3bc 100644 --- a/src/layout/tests.rs +++ b/src/layout/tests.rs @@ -1,6 +1,9 @@ use std::cell::Cell; -use niri_config::{FloatOrInt, OutputName, TabIndicatorLength, WorkspaceName, WorkspaceReference}; +use niri_config::{ + FloatOrInt, OutputName, TabIndicatorLength, TabIndicatorPosition, WorkspaceName, + WorkspaceReference, +}; use proptest::prelude::*; use proptest_derive::Arbitrary; use smithay::output::{Mode, PhysicalProperties, Subpixel}; @@ -3200,6 +3203,15 @@ fn arbitrary_center_focused_column() -> impl Strategy impl Strategy { + prop_oneof![ + Just(TabIndicatorPosition::Left), + Just(TabIndicatorPosition::Right), + Just(TabIndicatorPosition::Top), + Just(TabIndicatorPosition::Bottom), + ] +} + prop_compose! { fn arbitrary_focus_ring()( off in any::(), @@ -3246,6 +3258,7 @@ prop_compose! { width in arbitrary_spacing(), gap in arbitrary_spacing_neg(), length in (0f64..2f64), + position in arbitrary_tab_indicator_position(), ) -> niri_config::TabIndicator { niri_config::TabIndicator { off, @@ -3253,6 +3266,7 @@ prop_compose! { width: FloatOrInt(width), gap: FloatOrInt(gap), length: TabIndicatorLength { total_proportion: Some(length) }, + position, ..Default::default() } } -- cgit