@@ -164,9 +164,9 @@ test('Check one image 16x16px file', async () => {
164164 controller . margins . left += controller . unitWidth ;
165165 const assumeFile : IRect = {
166166 xLeft : controller . leftTopPoint . xLeft ,
167- xRight : controller . leftTopPoint . xLeft + SurveyHelper . pxToPt ( imageSize . width ) ,
167+ xRight : controller . leftTopPoint . xLeft + imageSize . width ,
168168 yTop : controller . leftTopPoint . yTop ,
169- yBot : controller . leftTopPoint . yTop + SurveyHelper . pxToPt ( imageSize . height ) +
169+ yBot : controller . leftTopPoint . yTop + imageSize . height +
170170 controller . unitHeight * ( 1.0 + FlatFile . IMAGE_GAP_SCALE )
171171 } ;
172172 TestHelper . equalRect ( expect , flats [ 0 ] [ 0 ] , assumeFile ) ;
@@ -204,7 +204,7 @@ test('Check one image 16x16px file shorter than text', async () => {
204204 xLeft : controller . leftTopPoint . xLeft ,
205205 xRight : controller . leftTopPoint . xLeft + controller . measureText ( json . elements [ 0 ] . defaultValue [ 0 ] . name ) . width ,
206206 yTop : controller . leftTopPoint . yTop ,
207- yBot : controller . leftTopPoint . yTop + SurveyHelper . pxToPt ( imageSize . height ) +
207+ yBot : controller . leftTopPoint . yTop + imageSize . height +
208208 controller . unitHeight * ( 1.0 + FlatFile . IMAGE_GAP_SCALE )
209209 } ;
210210 TestHelper . equalRect ( expect , flats [ 0 ] [ 0 ] , assumeFile ) ;
0 commit comments