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

Version Path
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js