From 20ea611db79495e244ccf9aa37cdb3b22d75a92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Thu, 21 Dec 2017 12:08:19 -0800 Subject: Replace mayHaveProperty with verifyProperty --- harness/testIntl.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'harness') diff --git a/harness/testIntl.js b/harness/testIntl.js index 9121f89ae..d0b48fa94 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -856,22 +856,6 @@ function testProperty(obj, property, valid) { } -/** - * Tests whether the named property of the given object, if present at all, has a valid value - * and the default attributes of the properties of an object literal. - * @param {Object} obj the object to be tested. - * @param {string} property the name of the property - * @param {Function|Array} valid either a function that tests value for validity and returns a boolean, - * an array of valid values. - * @exception if the property is present and has an invalid value. - */ -function mayHaveProperty(obj, property, valid) { - if (obj.hasOwnProperty(property)) { - testProperty(obj, property, valid); - } -} - - /** * Tests whether the given object has the named property with a valid value * and the default attributes of the properties of an object literal. -- cgit v1.2.1