2015-08-30 21:29:19 +02:00
|
|
|
var DesktopApps = require('../js/util/desktop-apps');
|
|
|
|
|
|
|
|
var DesktopSuite = exports.DesktopSuite = {};
|
|
|
|
|
|
|
|
|
|
|
|
DesktopSuite.findIconThemes = function(test) {
|
|
|
|
|
|
|
|
DesktopApps.findIconThemes()
|
|
|
|
.then(function(themes) {
|
|
|
|
//console.log(themes);
|
|
|
|
test.ok(themes.length > 0);
|
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
.catch(function(err) {
|
|
|
|
test.ifError(err);
|
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
DesktopSuite.findIcon = function(test) {
|
|
|
|
|
2015-08-31 23:08:56 +02:00
|
|
|
DesktopApps.findIcon('phpmyadmin')
|
2015-08-30 21:29:19 +02:00
|
|
|
.then(function(iconPath) {
|
2015-08-31 12:24:55 +02:00
|
|
|
console.log('findIcon', iconPath);
|
2015-08-30 21:29:19 +02:00
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
.catch(function(err) {
|
|
|
|
test.ifError(err);
|
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
;
|
|
|
|
|
|
|
|
};
|