Sha256: 0b199df8c119cc33fbf5f650a251ba9b890a197322bcaa579b9d9e94c414694d
Contents?: true
Size: 1020 Bytes
Versions: 7
Compression:
Stored size: 1020 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Apple Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== /*globals module ok equals same test MyApp */ // test parsing of query string module("SC.Query#copy"); test("basic copy", function() { var q= SC.Query.create({ conditions: "foo = bar", parameters: { foo: "bar" }, orderBy: "foo", recordType: SC.Record, recordTypes: [SC.Record], location: SC.Query.REMOTE, scope: SC.CoreSet.create() }).freeze(); var keys = 'conditions orderBy recordType recordTypes parameters location scope'.w(); var copy = q.copy(); equals(copy.isFrozen, NO, 'copy should not be frozen'); keys.forEach(function(key) { equals(copy.get(key), q.get(key), 'copy.%@ should = original.%@'.fmt(key, key)); }, this); });
Version data entries
7 entries across 7 versions & 1 rubygems