Sha256: cf593230dad58b8ab826adced3420ca459816ca10ba33d63f98bad4b9fe97c47

Contents?: true

Size: 893 Bytes

Versions: 4

Compression:

Stored size: 893 Bytes

Contents

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

/*global module test htmlbody ok equals same stop start */

module("PanelPane - Methods");

function getViewCount() {
  var i = 0; for (key in SC.View.views) ++i;
  return i;
}

test("PanelPane destroy", function() {
  var start = getViewCount();

  var pane = SC.PanelPane.create({
    isModal: YES
  });
  SC.run(function () {
    pane.append();
  });

  SC.run(function () {
    pane.destroy();
  });

  var end = getViewCount();
  equals(start, end, "No extra views lying about after calling .destroy");
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js