Sha256: 295142697a80099b88bf963d6204ee5ee940691b9207f19c9f9ba0a8f72a6d7d
Contents?: true
Size: 746 Bytes
Versions: 9
Compression:
Stored size: 746 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2009 Apple, Inc. and contributors. // License: Licened 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
9 entries across 9 versions & 1 rubygems