From 3524386543577c323fa83b0a5dd94ec692024fa1 Mon Sep 17 00:00:00 2001 From: Hiroaki ENDOH Date: Fri, 25 Dec 2015 23:33:07 +0900 Subject: [PATCH] Fix typo --- 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 e300b4a0..b6b49e5d 100644 --- a/test/modules/navigator.js +++ b/test/modules/navigator.js @@ -200,28 +200,28 @@ var assessViewerInCorner = function (theContentCorner) { return function () { - var expectedXCoordinate, expecteYCoordinate; + var expectedXCoordinate, expectedYCoordinate; if (theContentCorner === "TOPLEFT") { expectedXCoordinate = 0; - expecteYCoordinate = 0; + expectedYCoordinate = 0; } else if (theContentCorner === "TOPRIGHT") { expectedXCoordinate = 1 - viewer.viewport.getBounds().width; - expecteYCoordinate = 0; + expectedYCoordinate = 0; } else if (theContentCorner === "BOTTOMRIGHT") { expectedXCoordinate = 1 - viewer.viewport.getBounds().width; - expecteYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height; + expectedYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height; } else if (theContentCorner === "BOTTOMLEFT") { expectedXCoordinate = 0; - expecteYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height; + expectedYCoordinate = 1 / viewer.source.aspectRatio - viewer.viewport.getBounds().height; } if (viewer.viewport.getBounds().width < 1) { Util.assessNumericValue(expectedXCoordinate, viewer.viewport.getBounds().x, 0.04, ' Viewer at ' + theContentCorner + ', x coord'); } if (viewer.viewport.getBounds().height < 1 / viewer.source.aspectRatio) { - Util.assessNumericValue(expecteYCoordinate, viewer.viewport.getBounds().y, 0.04, ' Viewer at ' + theContentCorner + ', y coord'); + Util.assessNumericValue(expectedYCoordinate, viewer.viewport.getBounds().y, 0.04, ' Viewer at ' + theContentCorner + ', y coord'); } }; };