Handle change and interaction events on escape items
This commit is contained in:
parent
591cd8d073
commit
21c1ddffb3
2 changed files with 22 additions and 10 deletions
|
@ -62,11 +62,13 @@ describe('TouchBar module', function () {
|
|||
showArrowButtons: true
|
||||
})
|
||||
])
|
||||
window.setTouchBar(touchBar)
|
||||
touchBar.setEscapeItem(new TouchBarButton({
|
||||
const escapeButton = new TouchBarButton({
|
||||
label: 'foo'
|
||||
}))
|
||||
})
|
||||
window.setTouchBar(touchBar)
|
||||
touchBar.setEscapeItem(escapeButton)
|
||||
label.label = 'baz'
|
||||
escapeButton.label = 'hello'
|
||||
window.setTouchBar()
|
||||
window.setTouchBar(new TouchBar([new TouchBarLabel({label: 'two'})]))
|
||||
touchBar.setEscapeItem()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue