Sha256: 7f876a126985799597919fbc6351162812b7d7a039012b3bd523251ae64e74a8

Contents?: true

Size: 947 Bytes

Versions: 16

Compression:

Stored size: 947 Bytes

Contents

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

/*global module test equals context ok same Q$ htmlbody */

var pane;

module("SC.Pane#layout", {
  setup: function() {
    pane = SC.Pane.create({
      layout: { top: 0, left: 0, width: 1, height: 1}
    });
    pane.append();
  },
  
  teardown: function() {
    pane.remove();
  }
});

test("make sure that a call to adjust actually adjusts the view's size", function() {  
  SC.run(function() {
    pane.adjust({ width: 100, height: 50 });
  });
  
  equals(pane.$()[0].style.width, '100px', 'width should have been adjusted');
  equals(pane.$()[0].style.height, '50px', 'height should have been adjusted');
});

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/frameworks/amber/tests/views/pane/layout.js
sproutcore-1.4.5 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.4-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.4 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.3 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.2 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.1 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js
sproutcore-1.4.0 lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js