mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-04 12:54:41 +00:00
force round numbers to avoid testing step rounding in keypress tests
This commit is contained in:
parent
3e47bff3ff
commit
3b83d4e032
1 changed files with 9 additions and 2 deletions
|
|
@ -6,8 +6,15 @@
|
|||
var onChangeCnt = 0;
|
||||
window.onChangeCounter = function() {
|
||||
onChangeCnt++;
|
||||
}
|
||||
module('jquery.mobile.slider.js');
|
||||
};
|
||||
|
||||
module('jquery.mobile.slider.js', {
|
||||
setup: function() {
|
||||
// force the value to be an increment of 10 when we aren't
|
||||
// testing the rounding
|
||||
$("#stepped").val( 20 );
|
||||
}
|
||||
});
|
||||
|
||||
var keypressTest = function(opts){
|
||||
var slider = $(opts.selector),
|
||||
|
|
|
|||
Loading…
Reference in a new issue