Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
30
my-app/node_modules/karma/lib/browser_result.js
generated
vendored
Executable file
30
my-app/node_modules/karma/lib/browser_result.js
generated
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
'use strict'
|
||||
|
||||
class BrowserResult {
|
||||
constructor (total = 0) {
|
||||
this.startTime = Date.now()
|
||||
|
||||
this.total = total
|
||||
this.skipped = this.failed = this.success = 0
|
||||
this.netTime = this.totalTime = 0
|
||||
this.disconnected = this.error = false
|
||||
}
|
||||
|
||||
totalTimeEnd () {
|
||||
this.totalTime = Date.now() - this.startTime
|
||||
}
|
||||
|
||||
add (result) {
|
||||
if (result.skipped) {
|
||||
this.skipped++
|
||||
} else if (result.success) {
|
||||
this.success++
|
||||
} else {
|
||||
this.failed++
|
||||
}
|
||||
|
||||
this.netTime += result.time
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BrowserResult
|
||||
Loading…
Add table
Add a link
Reference in a new issue