Sha256: 4a4130d12bc30a59df5962b855ed9127c7f8dec0c9984723c61fcd6312267405

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

module "AS.Views.VerticalSplit"
test "contains top, bottom and splitter elemens", ->
  view = new AS.Views.VerticalSplit()
  
  equal view.el.find(".Panel").length, 2, "contains two panels"
  ok view.el.find(":nth-child(2)").is(".Splitter"), "with a splitter in the middle"

test "allows configurable top, bottom and splitter elements", ->
  view = new AS.Views.VerticalSplit
    top: 'top', bottom: 'bottom', splitter: 'splitter'
  
  deepEqual [view.top, view.bottom, view.splitter], 'top bottom splitter'.split(" "), "lets you set them"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alpha-simprini-engine-0.0.4 app/assets/javascripts/test/alpha_simprini/views/vertical_split.coffee
alpha-simprini-engine-0.0.3 app/assets/javascripts/test/alpha_simprini/views/vertical_split.coffee
alpha-simprini-engine-0.0.2 app/assets/javascripts/test/alpha_simprini/views/vertical_split.coffee
alpha-simprini-engine-0.0.1 app/assets/javascripts/test/alpha_simprini/views/vertical_split.coffee