summaryrefslogtreecommitdiff
path: root/harness
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2017-12-21 12:08:10 -0800
committerRick Waldron <waldron.rick@gmail.com>2017-12-21 16:46:55 -0500
commit123259733b25badb7c19f37e35ce472eb5e20e16 (patch)
treeb14f709137931816cb00e13fb2409ce80fee55ac /harness
parente65c65c293c2f7cf8b775704aa26579989ea1514 (diff)
downloadqtdeclarative-testsuites-123259733b25badb7c19f37e35ce472eb5e20e16.tar.gz
Replace testArraysAreSame with assert.compareArray
Diffstat (limited to 'harness')
-rw-r--r--harness/testIntl.js20
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;
-}