Fix error message of assertWithinDelta()

This commit is contained in:
Aleksei Kuzmin 2017-07-04 11:56:21 +02:00
parent d58a5dfe3a
commit 120b05e075

View file

@ -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