1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2026-01-10 21:49:14 +00:00
Files
haste-server/node_modules/mocha/node_modules/growl/test.js
2012-02-06 14:09:01 -05:00

17 lines
636 B
JavaScript

var growl = require('./lib/growl')
growl('You have mail!')
growl('5 new messages', { sticky: true })
growl('5 new emails', { title: 'Email Client', image: 'Safari', sticky: true })
growl('Message with title', { title: 'Title'})
growl('Set priority', { priority: 2 })
growl('Show Safari icon', { image: 'Safari' })
growl('Show icon', { image: 'path/to/icon.icns' })
growl('Show image', { image: 'path/to/my.image.png' })
growl('Show png filesystem icon', { image: 'png' })
growl('Show pdf filesystem icon', { image: 'article.pdf' })
growl('Show pdf filesystem icon', { image: 'article.pdf' }, function(){
console.log('callback');
})