diff --git a/test/modules/tiledimage.js b/test/modules/tiledimage.js index 614d28fd..d7a46aef 100644 --- a/test/modules/tiledimage.js +++ b/test/modules/tiledimage.js @@ -210,14 +210,8 @@ var canvasClip = viewer.viewport .viewportToViewerElementRectangle(homeBounds); var precision = 0.00000001; - Util.assessNumericValue(rect.x, canvasClip.x, precision, - 'clipping x should be ' + canvasClip.x); - Util.assessNumericValue(rect.y, canvasClip.y, precision, - 'clipping y should be ' + canvasClip.y); - Util.assessNumericValue(rect.width, canvasClip.width, precision, - 'clipping width should be ' + canvasClip.width); - Util.assessNumericValue(rect.height, canvasClip.height, precision, - 'clipping height should be ' + canvasClip.height); + Util.assertRectangleEquals(rect, canvasClip, precision, + 'clipping should be ' + canvasClip); start(); }); });