Sha256: 853695259abadb2ec0216b7884a3c9a0adc19b619bcad9992c0ebc2e1374ba03
Contents?: true
Size: 926 Bytes
Versions: 17
Compression:
Stored size: 926 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors. // Portions ©2008-2009 Apple Inc. All rights reserved. // License: Licened under MIT license (see license.js) // ========================================================================== /*global module test equals context ok same */ var context = null; // .......................................................... // id() // module("SC.RenderContext#id", { setup: function() { context = SC.RenderContext().id('foo') ; } }); test("id() returns the current id for the tag", function() { equals(context.id(), 'foo', 'get id'); }); test("id(bar) alters the current id", function() { equals(context.id("bar"), context, "Returns receiver"); equals(context.id(), 'bar', 'changed to bar'); });
Version data entries
17 entries across 17 versions & 2 rubygems