Correct function names in test helpers for consistency

This commit is contained in:
Harsh Kumar Gupta 2024-12-19 16:12:27 +05:30
parent 15627ee18e
commit a0fcfc20ad
2 changed files with 6 additions and 6 deletions

6
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "openseadragon", "name": "openseadragon",
"version": "5.0.1", "version": "5.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "openseadragon", "name": "openseadragon",
"version": "5.0.1", "version": "5.0.0",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"devDependencies": { "devDependencies": {
"eslint-plugin-compat": "^4.1.2", "eslint-plugin-compat": "^4.1.2",
@ -5217,4 +5217,4 @@
} }
} }
} }
} }

View File

@ -59,7 +59,7 @@
}, },
// ---------- // ----------
equalsWithVariance: function (value1, value2, variance) { equalsWithVariance: function (value1, value2, variance) {
return Math.abs(value1 - value2) <= variance; return Math.abs(value1 - value2) <= variance;
}, },
@ -72,13 +72,13 @@
}, },
// ---------- // ----------
assertPointEquals: function (assert, actualPoint, expectedPoint, precision, message) { assertPointsEquals: function (assert, actualPoint, expectedPoint, precision, message) {
Util.assessNumericValue(assert, actualPoint.x, expectedPoint.x, precision, message + " x: "); Util.assessNumericValue(assert, actualPoint.x, expectedPoint.x, precision, message + " x: ");
Util.assessNumericValue(assert, actualPoint.y, expectedPoint.y, precision, message + " y: "); Util.assessNumericValue(assert, actualPoint.y, expectedPoint.y, precision, message + " y: ");
}, },
// ---------- // ----------
assertRectangleEquals: function (assert, actualRect, expectedRect, precision, message) { assertRectangleEquals: function (assert, actualRect, expectedRect, precision, message) {
Util.assessNumericValue(assert, actualRect.x, expectedRect.x, precision, message + " x: "); Util.assessNumericValue(assert, actualRect.x, expectedRect.x, precision, message + " x: ");
Util.assessNumericValue(assert, actualRect.y, expectedRect.y, precision, message + " y: "); Util.assessNumericValue(assert, actualRect.y, expectedRect.y, precision, message + " y: ");
Util.assessNumericValue(assert, actualRect.width, expectedRect.width, precision, message + " width: "); Util.assessNumericValue(assert, actualRect.width, expectedRect.width, precision, message + " width: ");