Sha256: 9d004c65eaf018e9d5f1dc2a9222333555b31d2edb15083a70978d17923cbc4b
Contents?: true
Size: 1.52 KB
Versions: 11
Compression:
Stored size: 1.52 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 }); 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
11 entries across 11 versions & 1 rubygems