mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
8668998b1a
This JS file was previously loaded in the vendor folder even though it was internally written. It has also been converted to CoffeeScript.
31 lines
969 B
CoffeeScript
31 lines
969 B
CoffeeScript
setGlobalFocusPriority = (priority) ->
|
|
env = jasmine.getEnv()
|
|
env.focusPriority = 1 unless env.focusPriority
|
|
env.focusPriority = priority if priority > env.focusPriority
|
|
|
|
window.fdescribe = (description, specDefinitions, priority) ->
|
|
priority = 1 unless priority
|
|
setGlobalFocusPriority(priority)
|
|
suite = describe(description, specDefinitions)
|
|
suite.focusPriority = priority
|
|
suite
|
|
|
|
window.ffdescribe = (description, specDefinitions) ->
|
|
fdescribe(description, specDefinitions, 2)
|
|
|
|
window.fffdescribe = (description, specDefinitions) ->
|
|
fdescribe(description, specDefinitions, 3)
|
|
|
|
window.fit = (description, definition, priority) ->
|
|
priority = 1 unless priority
|
|
setGlobalFocusPriority(priority)
|
|
spec = it(description, definition)
|
|
spec.focusPriority = priority
|
|
spec
|
|
|
|
window.ffit = (description, specDefinitions) ->
|
|
fit(description, specDefinitions, 2)
|
|
|
|
window.fffit = (description, specDefinitions) ->
|
|
fit(description, specDefinitions, 3)
|