Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
[slider unit tests] Use new versionTest() function to correctly ident…
Browse files Browse the repository at this point in the history
…ify jQuery versions less than 1.8
  • Loading branch information
Gabriel Schulhof committed Nov 19, 2012
1 parent a9205a2 commit fb1221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/slider/slider_events.js
Expand Up @@ -401,7 +401,7 @@
// and with the advent of the widget _on method we are actually testing the
// widget from UI which has it's own test suite for these sorts of things
// ie, don't test your dependencies / framework
if( !( $.fn.jquery.match(/^1.8/) )){
if( $.testHelper.versionTest( $.fn.jquery, function( l, r ) { return ( l < r ); }, "1.8" ) ){
test( "slider should detach event", function() {
var slider = $( "#remove-events-slider" ),
doc = $( document ),
Expand Down

0 comments on commit fb1221e

Please sign in to comment.