| Page 1 of 1 | [ 2 posts ] |
|
At a glance I couldn't see a link to your bug reporting system, so very quickly here it is:
File: test/js/ObjectAssert.js http://yuilibrary.com/yui/docs/api/file ... js.html#l2 Code: /** * Asserts that all properties exist on an object prototype. * @param {Array} properties An array of property names that should be on the object. * @param {Object} object The object to search. * @param {String} message (Optional) The message to display if the assertion fails. * @method inheritsKeys * @static */ inheritsKeys: function (properties, object, message) { YUITest.Assert._increment(); for (var i=0; i < properties.length; i++){ if (!(propertyName in object && !object.hasOwnProperty(properties[i]))){ YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object instance.")); } } }, Undeclared: Code: propertyName Should of course be Code: properties[i] |
|
OK, bug report duly filed with the YUI Test project.
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group