chore: improve smoke test for tray (#19991)

This commit is contained in:
Shelley Vohr 2019-08-29 08:07:02 -07:00 committed by GitHub
parent 7d4e0ad7b0
commit 81e6f317c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -918,10 +918,17 @@ app.on('ready', () => {
{ label: 'Item3', type: 'radio', checked: true },
{ label: 'Item4', type: 'radio' }
])
appIcon.setTitle('title')
appIcon.setToolTip('This is my application.')
appIcon.setContextMenu(contextMenu)
appIcon.setImage('/path/to/new/icon')
appIcon.setPressedImage('/path/to/new/icon')
appIcon.popUpContextMenu(contextMenu, { x: 100, y: 100 })
appIcon.setContextMenu(contextMenu)
appIcon.setIgnoreDoubleClickEvents(true)
appIcon.on('click', (event, bounds) => {
console.log('click', event, bounds)
@ -933,7 +940,12 @@ app.on('ready', () => {
appIcon.displayBalloon({
title: 'Hello World!',
content: 'This the the balloon content.'
content: 'This the the balloon content.',
iconType: 'error',
icon: 'path/to/icon',
respectQuietTime: true,
largeIcon: true,
noSound: true
})
})