From 120b05e0752f4e8822e46bc3de84b7d6347c09cd Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Tue, 4 Jul 2017 11:56:21 +0200 Subject: [PATCH] Fix error message of `assertWithinDelta()` --- spec/api-browser-window-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index fba606f3a570..a7c153235c88 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -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