aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-17 17:39:29 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-17 17:39:29 +0000
commit0604e110524c77a4430666c9719942772b8caa86 (patch)
treeec7e19cb566f7e6b8dc3538167d5ae6bafbaeb45 /tests/unit/slider
parente84a318e4670bed0d8690b0a7625df31d39aaf92 (diff)
downloadjquery-ui-0604e110524c77a4430666c9719942772b8caa86.tar.gz
jquery-ui-0604e110524c77a4430666c9719942772b8caa86.zip
Slider: fixed change event to be triggered by keyup and value and values option setters. Fixes #5367 - slider change event not triggered by keypress
Diffstat (limited to 'tests/unit/slider')
-rw-r--r--tests/unit/slider/slider_events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/slider/slider_events.js b/tests/unit/slider/slider_events.js
index dd68a74b6..fb9af8155 100644
--- a/tests/unit/slider/slider_events.js
+++ b/tests/unit/slider/slider_events.js
@@ -20,7 +20,7 @@ test( "slide", function() {
// value (even if same as previous value), via mouse(mouseup) or keyboard(keyup)
// or value method/option"
test( "change", function() {
- expect(7);
+ expect(8);
var handle;
// Test mouseup at end of handle slide (mouse)
@@ -48,7 +48,7 @@ test( "change", function() {
el.find( ".ui-slider-handle" ).eq( 0 )
.simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } )
.simulate( "keypress", { keyCode: $.ui.keyCode.LEFT } )
- .simulate( "keyup", { charCode: $.ui.keyCode.LEFT } );
+ .simulate( "keyup", { keyCode: $.ui.keyCode.LEFT } );
reset();
// Test value method