Browse files

short term fix for exact middle calculation in slider test

  • Loading branch information...
1 parent 0f9c752 commit 34d715ce602dbdba926d337c13794eb25df7ce0b @johnbender johnbender committed Apr 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/slider/slider_events.js
View
4 tests/unit/slider/slider_events.js
@@ -273,8 +273,8 @@
// simulate dragging more than a half
offset = handle.offset();
slider.trigger( createEvent( "mousedown", handle[ 0 ], offset.left + 10, offset.top + 10 ) );
- slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
- slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 ), offset.top + 10 ) );
+ slider.trigger( createEvent( "mousemove", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
+ slider.trigger( createEvent( "mouseup", handle[ 0 ], offset.left - ( width / 2 + 10 ), offset.top + 10 ) );
},
function() {

0 comments on commit 34d715c

Please sign in to comment.