Choices: review r1 fixes
This commit is contained in:
40 files changed
+774
-209
No files matched your search
@@ -70,18 +70,6 @@ func TestSliderClampsOutOfRangeValue(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSliderDisabled(t *testing.T) {
|
||||
v, changes := 30.0, 0
|
||||
tt := sliderTester(&v, SliderOptions{Disabled: true, Step: 1}, &changes)
|
||||
tt.Key(0, ui.KeyTab)
|
||||
tt.Key(0, ui.KeyRight)
|
||||
tt.Press(100, 18)
|
||||
tt.Release(100, 18)
|
||||
if v != 30 {
|
||||
t.Fatalf("disabled slider moved to %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSliderBadRange(t *testing.T) {
|
||||
defer func() {
|
||||
if recover() == nil {
|
||||
|
||||
Reference in new issue
Block a user