Handle change and interaction events on escape items

This commit is contained in:
Kevin Sawicki 2017-03-29 13:26:52 -07:00
parent 591cd8d073
commit 21c1ddffb3
2 changed files with 22 additions and 10 deletions

View file

@ -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()