Sha256: d4e868aecfbc3faf8a57f365c0ca2776e8769ecd40a811f67b9c5fcc08631f8d
Contents?: true
Size: 1.44 KB
Versions: 11
Compression:
Stored size: 1.44 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2010 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 */ module("SC.PalettePane UI"); var pane ; test("verify palette pane content container is visible at correct location with right size", function() { pane = SC.PalettePane.create({ layout: { width: 400, height: 200, right: 20, top: 0 }, contentView: SC.View.extend({ }) }); pane.append(); ok(pane.get('isVisibleInWindow'), 'pane.isVisibleInWindow should be YES'); ok(pane.$().hasClass('sc-palette'), 'pane should have sc-palette class'); ok(pane.childViews[0].get('isVisibleInWindow'), 'pane.div.isVisibleInWindow should be YES'); ok(pane.childViews[0].$().hasClass('sc-view'), 'pane.div should have sc-view class'); var ret = pane.layoutStyle(); equals(ret.top, '0px', 'pane should be initiated at default position top including shadow'); equals(ret.right, '20px', 'pane should be initiated at default position right including shadow'); equals(ret.width, '400px', 'pane should have width 400px'); equals(ret.height, '200px', 'pane should have height 200px'); //pane.remove(); }) ;
Version data entries
11 entries across 11 versions & 1 rubygems