Merge pull request #9929 from alexeykuzmin/fix-assert-message

Fix error message of `assertWithinDelta()`
This commit is contained in:
Kevin Sawicki 2017-07-05 09:08:14 -07:00 committed by GitHub
commit adaa409c71

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