Documente Academic
Documente Profesional
Documente Cultură
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
coverageReporter: {
dir: 'coverage',
reporters: [{
type: 'lcov',
subdir: '.'
}]
},
// frameworks to use
frameworks: ['jasmine'],
plugins: [
'karma-jasmine',
'karma-firefox-launcher',
'karma-mocha-reporter',
'karma-coverage'
],
'push.js',
'push_tests.js'
],
preprocessors: {
'push.js': ['coverage']
},
port: 9876,
colors: true,
// level of logging
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
browsers: ['Firefox'],
singleRun: true
});
};
var isFunction = function (obj) { return obj && {}.toString.call(obj) === '[object Function]'; },
runFunctionString = function(funcStr) {
if (funcStr.trim().length > 0) {
if (isFunction(func))
func();
};
self.addEventListener('message', function(event) {
self.client = event.source;
});
self.onnotificationclose = function (event) {
runFunctionString(event.notification.data.onClose);
self.client.postMessage(JSON.stringify({
id: event.notification.data.id,
action: 'close'
}));
};
runFunctionString(event.notification.data.onClick);
origin = event.notification.data.origin;
link = event.notification.data.link;
event.notification.close();
event.waitUntil(clients.matchAll({
type: "window"
}).then(function (clientList) {
full_url += '/';
return client.focus();
if (clients.openWindow)
}));
};