summaryrefslogtreecommitdiff
path: root/harness
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2017-12-21 12:08:19 -0800
committerRick Waldron <waldron.rick@gmail.com>2017-12-21 16:46:56 -0500
commit20ea611db79495e244ccf9aa37cdb3b22d75a92f (patch)
tree54103ff552e0d593fe379ce09532babe183fdf85 /harness
parentd249979bc91560ad0bdd229756a014e64f7cfb4f (diff)
downloadqtdeclarative-testsuites-20ea611db79495e244ccf9aa37cdb3b22d75a92f.tar.gz
Replace mayHaveProperty with verifyProperty
Diffstat (limited to 'harness')
-rw-r--r--harness/testIntl.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/harness/testIntl.js b/harness/testIntl.js
index 9121f89ae..d0b48fa94 100644
--- a/harness/testIntl.js
+++ b/harness/testIntl.js
@@ -857,22 +857,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.
* @param {Object} obj the object to be tested.