Add smoke test for escape replacement

This commit is contained in:
Samuel Attard 2017-03-27 11:23:48 +11:00 committed by Kevin Sawicki
parent 4d6b0fc01b
commit 2ba937289c

View file

@ -56,6 +56,9 @@ describe('TouchBar module', function () {
}) })
]) ])
window.setTouchBar(touchBar) window.setTouchBar(touchBar)
touchBar.replaceEscapeItem(new TouchBarButton({
label: 'foo'
}))
label.label = 'baz' label.label = 'baz'
window.setTouchBar() window.setTouchBar()
window.setTouchBar(new TouchBar([new TouchBarLabel({label: 'two'})])) window.setTouchBar(new TouchBar([new TouchBarLabel({label: 'two'})]))