
This commit contains a settings pane implementation. There are a couple of things here, which are not used yet, like advanced form helpers. I'm leaving them here, because the plan is to add support for more settings soon (like: include/exclude branch patterns), which will need these helpers. There is also tabs support, although in the current version there is only one tab (initially it was created for supporting general tab and notifications tab).
29 lines
567 B
CoffeeScript
29 lines
567 B
CoffeeScript
view = null
|
|
|
|
module "Handlebars helpers - settings-input",
|
|
setup: ->
|
|
Ember.run -> Travis.advanceReadiness()
|
|
|
|
test "settings input allows to bind to nested objects", ->
|
|
controller = Ember.Object.create()
|
|
view = Ember.View.create(
|
|
controller: controller
|
|
template: Ember.Handlebars.compile("{{input value=foo}} {{controller}}")
|
|
)
|
|
|
|
Ember.run ->
|
|
view.append()
|
|
|
|
|
|
Ember.run ->
|
|
controller.set('foo', 'bar')
|
|
|
|
Ember.run.sync()
|
|
|
|
input = view.$('input')
|
|
input.val('a value').change()
|
|
Ember.run.sync()
|
|
|
|
console.log controller.get('foo')
|
|
|