From 81e6f317c92b6be8b3ebc5184bdf4a7501769f55 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 29 Aug 2019 08:07:02 -0700 Subject: [PATCH] chore: improve smoke test for tray (#19991) --- spec/ts-smoke/electron/main.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/spec/ts-smoke/electron/main.ts b/spec/ts-smoke/electron/main.ts index fefb3e5745cb..3a46ba9c3a6b 100644 --- a/spec/ts-smoke/electron/main.ts +++ b/spec/ts-smoke/electron/main.ts @@ -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 }) })