2015-04-06 18:44:05 +00:00
|
|
|
define( [
|
2016-04-06 13:18:13 +00:00
|
|
|
"qunit",
|
2015-04-06 18:44:05 +00:00
|
|
|
"jquery",
|
2015-07-15 02:08:11 +00:00
|
|
|
"ui/widgets/slider"
|
2016-04-06 13:18:13 +00:00
|
|
|
], function( QUnit, $ ) {
|
2008-11-12 02:52:31 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
var element, options;
|
2008-06-04 02:34:33 +00:00
|
|
|
|
2008-12-23 10:38:12 +00:00
|
|
|
function handle() {
|
2013-02-07 14:33:26 +00:00
|
|
|
return element.find( ".ui-slider-handle" );
|
2008-06-04 02:34:33 +00:00
|
|
|
}
|
|
|
|
|
2008-11-12 02:52:31 +00:00
|
|
|
// Slider Tests
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.module( "slider: core" );
|
2008-11-12 02:52:31 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "markup structure", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2015-08-24 12:58:09 +00:00
|
|
|
var element = $( "<div>" ).slider( { range: true } ),
|
2014-12-03 16:27:19 +00:00
|
|
|
handle = element.find( "span" ),
|
|
|
|
range = element.find( "div" );
|
|
|
|
|
|
|
|
assert.hasClasses( element, "ui-slider ui-slider-horizontal ui-widget ui-widget-content" );
|
|
|
|
assert.hasClasses( range, "ui-slider-range ui-widget-header" );
|
|
|
|
assert.hasClasses( handle[ 0 ], "ui-slider-handle" );
|
|
|
|
assert.hasClasses( handle[ 1 ], "ui-slider-handle" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2014-12-03 16:27:19 +00:00
|
|
|
|
2016-09-02 14:21:25 +00:00
|
|
|
QUnit.test( "custom handle", function( assert ) {
|
|
|
|
assert.expect( 3 );
|
|
|
|
|
|
|
|
var element = $( "#slider-custom-handle" ).slider();
|
|
|
|
var customHandle = $( ".custom-handle" );
|
|
|
|
var sliderHandles = element.find( ".ui-slider-handle" );
|
|
|
|
|
|
|
|
assert.equal( sliderHandles.length, 1, "Only one handle" );
|
|
|
|
assert.strictEqual( sliderHandles[ 0 ], customHandle[ 0 ], "Correct handle" );
|
|
|
|
assert.equal( customHandle.attr( "tabIndex" ), 0, "tabIndex" );
|
|
|
|
} );
|
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown HOME on handle sets value to min", function( assert ) {
|
|
|
|
assert.expect( 2 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", 0 );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.HOME } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", 0 );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.HOME } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min ) ;
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown END on handle sets value to max", function( assert ) {
|
|
|
|
assert.expect( 2 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", 0 );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.END } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max ) ;
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", 0 );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.END } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown PAGE_UP on handle increases value by 1/5 range, not greater than max", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
$.each( [ "horizontal", "vertical" ], function( i, orientation ) {
|
|
|
|
element = $( "<div></div>" );
|
2009-11-09 03:10:57 +00:00
|
|
|
options = {
|
|
|
|
max: 100,
|
|
|
|
min: 0,
|
|
|
|
orientation: orientation,
|
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2015-08-24 12:58:09 +00:00
|
|
|
element.slider( "value", 70 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), 90 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), 100 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
|
|
|
} );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown PAGE_DOWN on handle decreases value by 1/5 range, not less than min", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
$.each( [ "horizontal", "vertical" ], function( i, orientation ) {
|
|
|
|
element = $( "<div></div>" );
|
2009-11-09 03:10:57 +00:00
|
|
|
options = {
|
|
|
|
max: 100,
|
|
|
|
min: 0,
|
|
|
|
orientation: orientation,
|
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2015-08-24 12:58:09 +00:00
|
|
|
element.slider( "value", 30 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), 10 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), 0 );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
|
|
|
} );
|
2009-11-09 03:10:57 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown UP on handle increases value by step, not greater than max", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2015-08-24 12:58:09 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.max - options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.max - options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.UP } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown RIGHT on handle increases value by step, not greater than max", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2015-08-24 12:58:09 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.max - options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.max - options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.max );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown DOWN on handle decreases value by step, not less than min", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.min + options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.min + options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2016-04-06 13:18:13 +00:00
|
|
|
QUnit.test( "keydown LEFT on handle decreases value by step, not less than min", function( assert ) {
|
|
|
|
assert.expect( 4 );
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "horizontal",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2015-08-24 12:58:09 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.min + options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element = $( "<div></div>" );
|
2008-12-23 10:38:12 +00:00
|
|
|
options = {
|
|
|
|
max: 5,
|
|
|
|
min: -5,
|
2012-12-26 13:08:48 +00:00
|
|
|
orientation: "vertical",
|
2008-12-23 10:38:12 +00:00
|
|
|
step: 1
|
|
|
|
};
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( options );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "value", options.min + options.step );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
handle().simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
2016-04-06 13:18:13 +00:00
|
|
|
assert.equal( element.slider( "value" ), options.min );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2013-02-07 14:33:26 +00:00
|
|
|
element.slider( "destroy" );
|
2015-08-24 12:58:09 +00:00
|
|
|
} );
|
2008-12-23 10:38:12 +00:00
|
|
|
|
2015-04-06 18:44:05 +00:00
|
|
|
} );
|