Sha256: 9205736548ff53833243f077e09e8f610212429d5f38d2a1b57b74cd23f37356

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

module("Template Panes");

test("Template panes append a main pane to the document body", function() {
  var pane = SC.TemplatePane.append({
    layerId: 'template-panes-are-so-cool',

    template: SC.Handlebars.compile('<h1>foo bar baz</h1>')
  });

  ok(pane.get('layer'), "creates a layer for the pane");
  equals(pane.$('#template-panes-are-so-cool').length, 1, "creates a view with the passed id");

  pane.remove();
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/core_foundation/tests/panes/template.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js