diff options
author | André Bargull <andre.bargull@gmail.com> | 2017-12-21 12:08:09 -0800 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-12-21 16:46:55 -0500 |
commit | e65c65c293c2f7cf8b775704aa26579989ea1514 (patch) | |
tree | 65ddd3bbbe117f33585beac95dfcad71d1727f5e /harness | |
parent | f87aeab893649a47bfffc2dc3fb97c822d0b9041 (diff) | |
download | qtdeclarative-testsuites-e65c65c293c2f7cf8b775704aa26579989ea1514.tar.gz |
Remove unused return value from testWithIntlConstructors
Diffstat (limited to 'harness')
-rw-r--r-- | harness/testIntl.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/harness/testIntl.js b/harness/testIntl.js index 5311939bc..4fd4f4348 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -14,25 +14,21 @@ author: Norbert Lindenberg /** * @description Calls the provided function for every service constructor in - * the Intl object, until f returns a falsy value. It returns the result of the - * last call to f, mapped to a boolean. + * the Intl object. * @param {Function} f the function to call for each service constructor in * the Intl object. * @param {Function} Constructor the constructor object to test with. - * @result {Boolean} whether the test succeeded. */ function testWithIntlConstructors(f) { var constructors = ["Collator", "NumberFormat", "DateTimeFormat"]; - return constructors.every(function (constructor) { + constructors.forEach(function (constructor) { var Constructor = Intl[constructor]; - var result; try { - result = f(Constructor); + f(Constructor); } catch (e) { e.message += " (Testing with " + constructor + ".)"; throw e; } - return result; }); } |