Sha256: 9a2234f2861dfb0af1f19cf98478ece3a5b4f61caf843dd339c0aa6f9a11ce1f

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            portions copyright @2009 Apple, Inc.
// License:   Licened under MIT license (see license.js)
// ==========================================================================

/*global module test htmlbody ok equals same stop start */

htmlbody('<style> .sc-static-layout { border: 1px red dotted; } </style>');

(function() {
  var pane = SC.ControlTestPane.design()
  .add("horizontal", SC.SeparatorView, { 
    layoutDirection: SC.LAYOUT_HORIZONTAL
  })
  .add("vertical", SC.SeparatorView, { 
    layoutDirection: SC.LAYOUT_VERTICAL
  });   
  pane.show(); 

module("TODO: Test SC.Separator UI", pane.standardSetup());

  test("basic", function() {
    var view = pane.view('horizontal');
    ok(!view.$().hasClass('vertical'), 'should not be vertically divided');
    equals(view.get('layoutDirection'),SC.LAYOUT_HORIZONTAL,"the view is divided horizontally");
    view = pane.view('vertical');
    ok(!view.$().hasClass('horizontal'), 'should not be horizontally divided');
    equals(view.get('layoutDirection'),SC.LAYOUT_VERTICAL,"the view is divided vertically");	
  });
  
  test("renders a component with a span tag",function(){
	var view = pane.view('horizontal');
	equals(view.get('tagName'), 'span', 'creates a pan tag');
  });
})();

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js