From 271aa1d94e3df852fc678cc80d1c66365b34cc2a Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 2 Mar 2013 15:26:18 -0500 Subject: Slider tests: Don't use .on(). --- tests/unit/slider/slider_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/slider/slider_options.js') diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js index dfa94696a..392140dd6 100644 --- a/tests/unit/slider/slider_options.js +++ b/tests/unit/slider/slider_options.js @@ -16,7 +16,7 @@ test( "disabled", function(){ var count = 0; element = $( "#slider1" ).slider(); - element.on( "slidestart", function() { + element.bind( "slidestart", function() { count++; }); -- cgit v1.2.3 From 6d3a1e1fe8cc21f385456ea26075f3909136a589 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 2 Mar 2013 15:31:38 -0500 Subject: Slider tests: Use ui-slider not uiSlider for data key. --- tests/unit/slider/slider_options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/slider/slider_options.js') diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js index 392140dd6..f46dbde99 100644 --- a/tests/unit/slider/slider_options.js +++ b/tests/unit/slider/slider_options.js @@ -180,13 +180,13 @@ test( "values", function() { document.createElement( "div" ), document.createElement( "div" ) ]).slider({ - range: true, + range: true, values: [ 25, 75 ] }); notStrictEqual( - ranges.eq( 0 ).data( "uiSlider" ).options.values, - ranges.eq( 1 ).data( "uiSlider" ).options.values, + ranges.eq( 0 ).data( "ui-slider" ).options.values, + ranges.eq( 1 ).data( "ui-slider" ).options.values, "multiple range sliders should not have a reference to the same options.values array" ); -- cgit v1.2.3