2012-01-11 19:30:10 +00:00
|
|
|
jasmine.GWT.globals =
|
|
|
|
Feature: (args...) ->
|
2012-01-18 22:41:08 +00:00
|
|
|
feature = new jasmine.GWT.Feature(args...)
|
|
|
|
feature.run()
|
2012-01-11 19:30:10 +00:00
|
|
|
|
|
|
|
Background: (args...) ->
|
|
|
|
jasmine.GWT.currentFeature_.Background(args...)
|
|
|
|
|
|
|
|
Scenario: (args...) ->
|
|
|
|
jasmine.GWT.currentFeature_.Scenario(args...)
|
|
|
|
|
|
|
|
Given: (args...) ->
|
|
|
|
@_lastType = 'Given'
|
|
|
|
jasmine.GWT.Step(@_lastType, args...)
|
|
|
|
|
|
|
|
When: (args...) ->
|
|
|
|
@_lastType = 'When'
|
|
|
|
jasmine.GWT.Step(@_lastType, args...)
|
|
|
|
|
|
|
|
Then: (args...) ->
|
|
|
|
@_lastType = 'Then'
|
|
|
|
jasmine.GWT.Step(@_lastType, args...)
|
|
|
|
|
|
|
|
And: (args...) ->
|
|
|
|
jasmine.GWT.Step(@_lastType, args...)
|
|
|
|
|
|
|
|
Before: (args...) -> jasmine.GWT.Hook('Before', args...)
|
|
|
|
After: (args...) -> jasmine.GWT.Hook('After', args...)
|
|
|
|
|
2012-01-12 15:13:58 +00:00
|
|
|
World: (args...) -> jasmine.GWT.World(args...)
|
|
|
|
|