lix-website/themes/lix/assets/bootstrap/node_modules/karma/static/debug.js

29 lines
856 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
// Override the Karma setup for local debugging
window.__karma__.info = function (info) {
if (info.dump && window.console) window.console.log(info.dump)
}
window.__karma__.complete = function () {
if (window.console) window.console.log('Skipped ' + this.skipped + ' tests')
}
window.__karma__.skipped = 0
window.__karma__.result = window.console ? function (result) {
if (result.skipped) {
this.skipped++
return
}
var msg = result.success ? 'SUCCESS ' : 'FAILED '
window.console.log(msg + result.suite.join(' ') + ' ' + result.description)
for (var i = 0; i < result.log.length; i++) {
// Printing error without losing stack trace
(function (err) {
setTimeout(function () {
window.console.error(err)
})
})(result.log[i])
}
} : function () {}
window.__karma__.loaded = function () {
this.start()
}