( value, expected )
| 4 | |
| 5 | // position values can be off by 0.1% or 1px |
| 6 | function isPositionApprox( value, expected ) { |
| 7 | var isPercent = value.indexOf('%') != -1; |
| 8 | value = parseFloat( value ); |
| 9 | var diff = Math.abs( expected - value ); |
| 10 | return isPercent ? diff < 0.1 : diff <= 1; |
| 11 | } |
| 12 | |
| 13 | // loop through cells and check position values against expecteds |
| 14 | function checkCellPositions( flkty, expecteds ) { |
no outgoing calls
no test coverage detected
searching dependent graphs…