mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Merge pull request #9929 from alexeykuzmin/fix-assert-message
Fix error message of `assertWithinDelta()`
This commit is contained in:
@@ -2678,7 +2678,7 @@ const assertBoundsEqual = (actual, expect) => {
|
||||
|
||||
const assertWithinDelta = (actual, expect, delta, label) => {
|
||||
const result = Math.abs(actual - expect)
|
||||
assert.ok(result <= delta, `${label} value of ${expect} was not within ${delta} of ${actual}`)
|
||||
assert.ok(result <= delta, `${label} value of ${actual} was not within ${delta} of ${expect}`)
|
||||
}
|
||||
|
||||
// Is the display's scale factor possibly causing rounding of pixel coordinate
|
||||
|
||||
Reference in New Issue
Block a user