aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-26 12:10:52 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-26 12:10:52 +0100
commit48f060ac25a805f8070a3ec5daf8be8e56d2b60b (patch)
tree86ccf253f330578a0f4b639b0827a5a4af8b9706 /tests
parent9ac6bde8a91f5f41c30fceeee6b98f9ca4bb8a91 (diff)
downloadjquery-ui-48f060ac25a805f8070a3ec5daf8be8e56d2b60b.tar.gz
jquery-ui-48f060ac25a805f8070a3ec5daf8be8e56d2b60b.zip
Spinner: Ignore delta of 0 from triggered mousewheel event. Verified
that mousewheel scrolling actually works fine in IE6.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/spinner/spinner_core.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/spinner/spinner_core.js b/tests/unit/spinner/spinner_core.js
index df2243adc..19bdb3495 100644
--- a/tests/unit/spinner/spinner_core.js
+++ b/tests/unit/spinner/spinner_core.js
@@ -120,14 +120,15 @@ test("mouse click on buttons", function() {
});
test("mouse wheel on input", function() {
- expect(3);
+ expect(4);
+ stop();
var el = $("#spin").spinner();
+ equal(el.val(), 0);
el.trigger("mousewheel", 1);
equal(el.val(), 1);
// mousewheel handler uses a timeout, need to accomodate that
- stop();
setTimeout(function() {
el.trigger("mousewheel", -1);
equal(el.val(), 0);