Sha256: 98968c612f6585e78ae861378fd74c6f8e278088f9c270d1ac7406f0d926172e
Contents?: true
Size: 927 Bytes
Versions: 11
Compression:
Stored size: 927 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors. // Portions ©2008-2010 Apple Inc. All rights reserved. // License: Licensed 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
11 entries across 11 versions & 1 rubygems