mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-18 00:31:45 +03:00
Correct function names in test helpers for consistency
This commit is contained in:
parent
15627ee18e
commit
a0fcfc20ad
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "openseadragon",
|
||||
"version": "5.0.1",
|
||||
"version": "5.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "openseadragon",
|
||||
"version": "5.0.1",
|
||||
"version": "5.0.0",
|
||||
"license": "BSD-3-Clause",
|
||||
"devDependencies": {
|
||||
"eslint-plugin-compat": "^4.1.2",
|
||||
@ -5217,4 +5217,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -59,7 +59,7 @@
|
||||
},
|
||||
|
||||
// ----------
|
||||
equalsWithVariance: function (value1, value2, variance) {
|
||||
equalsWithVariance: function (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.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.y, expectedRect.y, precision, message + " y: ");
|
||||
Util.assessNumericValue(assert, actualRect.width, expectedRect.width, precision, message + " width: ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user