Sha256: 04e5663d7f6da8b64cf74d7cbeecd6967628db95c42952fb3921c974638362ab
Contents?: true
Size: 894 Bytes
Versions: 16
Compression:
Stored size: 894 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Apple Inc. and contributors. // License: Licened under MIT license (see license.js) // ========================================================================== var view ; module("SC.CollectionView#displayProperties", { setup: function() { view = SC.CollectionView.create({ isVisibleInWindow: YES }).createLayer(); }, teardown: function() { view.destroy(); } }); test("should gain active class if isActive", function() { SC.RunLoop.begin(); view.set('isActive', YES); SC.RunLoop.end(); ok(view.$().hasClass('active'), 'should have active class'); SC.RunLoop.begin(); view.set('isActive', NO); SC.RunLoop.end(); ok(!view.$().hasClass('active'), 'should remove active class'); });
Version data entries
16 entries across 16 versions & 1 rubygems