Sha256: 5c014cf08fdeaf27e9c7139e0cf8557dee70bb8ed16119bc61589ec8ed16559b

Contents?: true

Size: 1.55 KB

Versions: 30

Compression:

Stored size: 1.55 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            portions copyright @2011 Apple Inc.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

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

(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", {
  setup: function(){
    htmlbody('<style> .sc-static-layout { border: 1px red dotted; } </style>');
    pane.standardSetup().setup();
  },
  teardown: function(){
    pane.standardSetup().teardown();
    clearHtmlbody();
  }
});

  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

30 entries across 30 versions & 1 rubygems

Version Path
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js