@@ -198,8 +198,8 @@ describe('Pie traces:', function() {
198
198
expect ( title . size ( ) ) . toBe ( 1 ) ;
199
199
var titlePos = getClientPosition ( 'g.titletext' ) ;
200
200
var pieCenterPos = getClientPosition ( 'g.trace' ) ;
201
- expect ( Math . abs ( titlePos [ 0 ] - pieCenterPos [ 0 ] ) ) . toBeLessThan ( 2 ) ;
202
- expect ( Math . abs ( titlePos [ 1 ] - pieCenterPos [ 1 ] ) ) . toBeLessThan ( 2 ) ;
201
+ expect ( Math . abs ( titlePos [ 0 ] - pieCenterPos [ 0 ] ) ) . toBeLessThan ( 4 ) ;
202
+ expect ( Math . abs ( titlePos [ 1 ] - pieCenterPos [ 1 ] ) ) . toBeLessThan ( 4 ) ;
203
203
} )
204
204
. catch ( failTest )
205
205
. then ( done ) ;
@@ -229,15 +229,15 @@ describe('Pie traces:', function() {
229
229
var pieBox = d3 . select ( 'g.trace' ) . node ( ) . getBoundingClientRect ( ) ;
230
230
var radius = 0.1 * Math . min ( pieBox . width / 2 , pieBox . height / 2 ) ;
231
231
var pieCenterPos = getClientPosition ( 'g.trace' ) ;
232
- // unfortunately boundingClientRect is inaccurate and so we allow an error of 2
232
+ // unfortunately boundingClientRect is inaccurate and so we allow an error of 3
233
233
expect ( _verifyPointInCircle ( titleBox . left , titleBox . top , pieCenterPos , radius ) )
234
- . toBeLessThan ( 2 ) ;
234
+ . toBeLessThan ( 3 ) ;
235
235
expect ( _verifyPointInCircle ( titleBox . right , titleBox . top , pieCenterPos , radius ) )
236
- . toBeLessThan ( 2 ) ;
236
+ . toBeLessThan ( 3 ) ;
237
237
expect ( _verifyPointInCircle ( titleBox . left , titleBox . bottom , pieCenterPos , radius ) )
238
- . toBeLessThan ( 2 ) ;
238
+ . toBeLessThan ( 3 ) ;
239
239
expect ( _verifyPointInCircle ( titleBox . right , titleBox . bottom , pieCenterPos , radius ) )
240
- . toBeLessThan ( 2 ) ;
240
+ . toBeLessThan ( 3 ) ;
241
241
} )
242
242
. catch ( failTest )
243
243
. then ( done ) ;
0 commit comments