Sha256: 904aae5c20c8923a675aeb7a1fae92086d3c64de2140349a71ddac633ac95eee
Contents?: true
Size: 795 Bytes
Versions: 43
Compression:
Stored size: 795 Bytes
Contents
// ======================================================================== // 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
43 entries across 43 versions & 3 rubygems