Skip to content

Commit d27d8ea

Browse files
committed
Effects Tests: Fix failing scale test due to subpixel accuracy
1 parent df56c3e commit d27d8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/effects/effects_scale.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ function run( position, v, h, vo, ho ) {
66
asyncTest( desc, function() {
77
expect( 2 );
88
function complete() {
9-
equal( parseInt( test.css( h ), 10 ), target[ h ], "Horizontal Position Correct " + desc );
10-
equal( parseInt( test.css( v ), 10 ), target[ v ], "Vertical Position Correct " + desc );
9+
closeEnough( parseInt( test.css( h ), 10 ), target[ h ], 1, "Horizontal Position Correct " + desc );
10+
closeEnough( parseInt( test.css( v ), 10 ), target[ v ], 1, "Vertical Position Correct " + desc );
1111
start();
1212
}
1313
var test = $( ".testScale" ),

0 commit comments

Comments
 (0)