Sha256: bfc1f62886fc6313e187a2b2d6b763b06d83e115b0917875ccb0236442b2f48f

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

module("SC.View - Static Layout functionality");

test("Static layout", function() {
  var view = SC.View.create({
    useStaticLayout: YES
  });

  view.createLayer();

  ok(view.$().is('.sc-static-layout'), "views with useStaticLayout get the sc-static-layout class");
});

test("Background color", function() {
  var view = SC.View.create({
    backgroundColor: "red"
  });

  view.createLayer();

  ok(view.$().css('background-color') == "red", "backgroundColor sets the CSS background-color class");
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js