1 |
|
2 | window.__karma__.info = function (info) {
|
3 | if (info.dump && window.console) window.console.log(info.dump)
|
4 | }
|
5 | window.__karma__.complete = function () {
|
6 | if (window.console) window.console.log('Skipped ' + this.skipped + ' tests')
|
7 | }
|
8 | window.__karma__.skipped = 0
|
9 | window.__karma__.result = window.console ? function (result) {
|
10 | if (result.skipped) {
|
11 | this.skipped++
|
12 | return
|
13 | }
|
14 | var msg = result.success ? 'SUCCESS ' : 'FAILED '
|
15 | window.console.log(msg + result.suite.join(' ') + ' ' + result.description)
|
16 |
|
17 | for (var i = 0; i < result.log.length; i++) {
|
18 |
|
19 | (function (err) {
|
20 | setTimeout(function () {
|
21 | window.console.error(err)
|
22 | })
|
23 | })(result.log[i])
|
24 | }
|
25 | } : function () {}
|
26 | window.__karma__.loaded = function () {
|
27 | this.start()
|
28 | }
|