mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Console spec reporter allows focused specs
This commit is contained in:
16
vendor/jasmine-console-reporter.js
vendored
16
vendor/jasmine-console-reporter.js
vendored
@@ -45,5 +45,19 @@ jasmine.ConsoleReporter.prototype.reportSpecResults = function(spec) {
|
||||
};
|
||||
|
||||
jasmine.ConsoleReporter.prototype.specFilter = function(spec) {
|
||||
return true;
|
||||
var globalFocusPriority = jasmine.getEnv().focusPriority
|
||||
var parent = spec.parentSuite || spec.suite
|
||||
|
||||
if (!globalFocusPriority) {
|
||||
return true
|
||||
}
|
||||
else if (spec.focusPriority >= globalFocusPriority) {
|
||||
return true
|
||||
}
|
||||
else if (!parent) {
|
||||
return false
|
||||
}
|
||||
else {
|
||||
return this.specFilter(parent)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user