Sha256: 64004a0cc35b3fda77fbd29fc5423b907cadfa6fe5816199f710229bde23a8f8

Contents?: true

Size: 832 Bytes

Versions: 2

Compression:

Stored size: 832 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
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();
  pane.destroy();
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/template_view/tests/panes/template.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/template_view/tests/panes/template.js