Fix AudioOptions navigation
This commit is contained in:
@@ -9,14 +9,14 @@ func TestMoveFocus(t *testing.T) {
|
||||
delta int
|
||||
want int
|
||||
}{
|
||||
{"down from track goes to device", 0, 1, 1},
|
||||
{"down from device goes to toggle", 1, 1, focusToggle},
|
||||
{"down from toggle stays", focusToggle, 1, focusToggle},
|
||||
{"up from toggle goes to device", focusToggle, -1, 1},
|
||||
{"up from device goes to track", 1, -1, 0},
|
||||
{"up from track stays", 0, -1, 0},
|
||||
{"down does not overshoot below toggle", focusToggle, 5, focusToggle},
|
||||
{"up does not undershoot above track", 0, -5, 0},
|
||||
{"down from toggle goes to device", focusToggle, 1, 1},
|
||||
{"down from device goes to track", 1, 1, 2},
|
||||
{"down from track stays", 2, 1, 2},
|
||||
{"up from track goes to device", 2, -1, 1},
|
||||
{"up from device goes to toggle", 1, -1, focusToggle},
|
||||
{"up from toggle stays", focusToggle, -1, focusToggle},
|
||||
{"down does not overshoot below track", maxFocus, 5, maxFocus},
|
||||
{"up does not undershoot above toggle", focusToggle, -5, focusToggle},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user