Verify selectedIndex to prevent NSRangeException
This commit is contained in:
parent
3b2faf7b89
commit
3349e32196
2 changed files with 5 additions and 3 deletions
|
@ -45,8 +45,9 @@ describe('TouchBar module', function () {
|
|||
new TouchBarSegmentedControl({
|
||||
segmentStyle: 'capsule',
|
||||
segments: [{label: 'baz', enabled: false}],
|
||||
selectedIndex: 0
|
||||
})
|
||||
selectedIndex: 5
|
||||
}),
|
||||
new TouchBarSegmentedControl({segments: []})
|
||||
])
|
||||
window.setTouchBar(touchBar)
|
||||
label.label = 'baz'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue