From 3a0e01479f1248b0401582fbd9e77de418b0986d Mon Sep 17 00:00:00 2001 From: nein09 Date: Fri, 19 Jan 2018 14:39:17 -0800 Subject: [PATCH] Call equalsWithVariance correctly --- test/modules/navigator.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/modules/navigator.js b/test/modules/navigator.js index cc0795fd..b67c10a7 100644 --- a/test/modules/navigator.js +++ b/test/modules/navigator.js @@ -1,4 +1,4 @@ -/* global QUnit, module, Util, $, console, propEqual */ +/* global QUnit, module, Util, $, console */ (function () { var debug = false, @@ -170,11 +170,11 @@ viewerAndNavigatorDisplayReady = viewer.drawer !== null && !viewer.world.needsDraw() && currentDisplayWidth > 0 && - Util.equalsWithVariance(assert, lastDisplayRegionLeft, currentDisplayRegionLeft, 0.0001) && - Util.equalsWithVariance(assert, lastDisplayWidth, currentDisplayWidth, 0.0001) && - Util.equalsWithVariance(assert, viewer.viewport.getBounds(true).x, viewer.viewport.getBounds().x, 0.0001) && - Util.equalsWithVariance(assert, viewer.viewport.getBounds(true).y, viewer.viewport.getBounds().y, 0.0001) && - Util.equalsWithVariance(assert, viewer.viewport.getBounds(true).width, viewer.viewport.getBounds().width, 0.0001); + Util.equalsWithVariance(lastDisplayRegionLeft, currentDisplayRegionLeft, 0.0001) && + Util.equalsWithVariance(lastDisplayWidth, currentDisplayWidth, 0.0001) && + Util.equalsWithVariance(viewer.viewport.getBounds(true).x, viewer.viewport.getBounds().x, 0.0001) && + Util.equalsWithVariance(viewer.viewport.getBounds(true).y, viewer.viewport.getBounds().y, 0.0001) && + Util.equalsWithVariance(viewer.viewport.getBounds(true).width, viewer.viewport.getBounds().width, 0.0001); } catch (err) { if(debug) {