Sha256: 68799c0e7b729379f1b72a8c8b08473becfbc5c4ef5f34a946ced10fe8426e58
Contents?: true
Size: 1.16 KB
Versions: 41
Compression:
Stored size: 1.16 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== // ======================================================================== // SC.Validator Tests // ======================================================================== /*globals module test ok isObj equals expects */ module("SC.Validator"); test("Calling fieldValueForObject() should not fail if this.prototypefieldValueForObject() is null", function() { var Klass = SC.Validator.extend({ fieldValueForObject: null }); equals(null, Klass.fieldValueForObject({}, null, null), "should return null") ; }); test("Calling objectForFieldValue() should not fail if this.prototype.objectForFieldValue() is null", function() { var Klass = SC.Validator.extend({ objectForFieldValue: null }); equals(null, Klass.objectForFieldValue({}, null, null), "should return null") ; });
Version data entries
41 entries across 41 versions & 1 rubygems