diff options
author | André Bargull <andre.bargull@gmail.com> | 2017-12-21 12:08:10 -0800 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-12-21 16:46:55 -0500 |
commit | 123259733b25badb7c19f37e35ce472eb5e20e16 (patch) | |
tree | b14f709137931816cb00e13fb2409ce80fee55ac /harness | |
parent | e65c65c293c2f7cf8b775704aa26579989ea1514 (diff) | |
download | qtdeclarative-testsuites-123259733b25badb7c19f37e35ce472eb5e20e16.tar.gz |
Replace testArraysAreSame with assert.compareArray
Diffstat (limited to 'harness')
-rw-r--r-- | harness/testIntl.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/harness/testIntl.js b/harness/testIntl.js index 4fd4f4348..8b9d29688 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -1181,23 +1181,3 @@ function isCanonicalizedStructurallyValidTimeZoneName(timeZone) { } return zoneNamePattern.test(timeZone); } - - -/** - * Verifies that the actual array matches the expected one in length, elements, - * and element order. - * @param {Array} expected the expected array. - * @param {Array} actual the actual array. - * @return {boolean} true if the test succeeds. - * @exception if the test fails. - */ -function testArraysAreSame(expected, actual) { - var i; - for (i = 0; i < Math.max(actual.length, expected.length); i++) { - if (actual[i] !== expected[i]) { - $ERROR("Result array element at index " + i + " should be \"" + - expected[i] + "\" but is \"" + actual[i] + "\"."); - } - } - return true; -} |