Lines Matching refs:ownsKeys
157 // Test Case for ownsKeys()
162 name : "ownsKeys() Tests",
166 "ownsKeys() should fail for existing key on prototype": "Property 'msg' not found on object instance.",
167 "ownsKeys() should fail for missing key on prototype": "Property 'msg' not found on object instance.",
168 "ownsKeys() should fail for missing key on object": "Property 'yui' not found on object instance.",
169 "ownsKeys() should fail for missing key on prototype": "Property 'yui' not found on object instance."
174 * Tests that ownsKeys() passes when properties with the given
177 "ownsKeys() should pass for existing key on instance": function(){
179 ObjectAssert.ownsKeys(["msg", "yui"], object);
183 * Tests that ownsKeys() fails when properties with the given
186 "ownsKeys() should fail for existing key on prototype": function(){
189 ObjectAssert.ownsKeys(["msg", "yui"], object);
193 * Tests that ownsKeys() fails when a property with the given
196 "ownsKeys() should fail for missing key on object": function(){
198 ObjectAssert.ownsKeys(["msg", "yui"], object);
202 * Tests that ownsKeys() fails when a property with the given
205 "ownsKeys() should fail for missing key on prototype": function(){
209 ObjectAssert.ownsKeys(["msg", "yui"], object);
213 * Tests that ownsKeys() fails when a property with the given
216 "ownsKeys() should fail for missing key on prototype": function(){
219 ObjectAssert.ownsKeys(["msg", "yui"], object);