[ 2 posts ]

Library Web

  • Username: LibraryWeb
  • Joined: Sun May 06, 2012 12:47 am
  • Posts: 2
  • Twitter: LibraryWeb
  • Offline
  • Profile
Tags:

quick bug report

Post Posted: Sun May 06, 2012 12:53 am
+0-
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]

Library Web

  • Username: LibraryWeb
  • Joined: Sun May 06, 2012 12:47 am
  • Posts: 2
  • Twitter: LibraryWeb
  • Offline
  • Profile

Re: quick bug report

Post Posted: Sun May 06, 2012 12:58 am
+0-
OK, bug report duly filed with the YUI Test project.
  [ 2 posts ]
Display posts from previous:  Sort by  
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