Sha256: 9d6cf741bca79a237595a026295ce4b4e3279b275f33fd18f0d147d31178a199

Contents?: true

Size: 1.43 KB

Versions: 7

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:   Licensed 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

7 entries across 7 versions & 1 rubygems

Version Path
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/frameworks/desktop/tests/views/separator.js