Sha256: d55a5398b24b1201d6b38e07037b3d319563c4b20fc2823f1abbe19fa6c1be19

Contents?: true

Size: 747 Bytes

Versions: 18

Compression:

Stored size: 747 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2010 Apple Inc. and contributors.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

module("SC.SelectionSet.copy");

test("basic copy", function() {
  var content = "1 2 3 4 5 6 7 8 9".w(),
      set     = SC.SelectionSet.create().add(content,4,4).remove(content,6),
      copy    = set.copy();
  
  equals(set.get('length'), 3, 'precond - original set should have length');
  equals(copy.get('length'), 3, 'copy should have same length');
  same(copy, set, 'copy should be the same as original set');
});

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/frameworks/amber/tests/system/selection_set/copy.js
sproutcore-1.4.5 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.4-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.4 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.3 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.2 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.1 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js
sproutcore-1.4.0 lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js