aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/accordion
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-16 16:51:46 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-16 16:51:46 -0500
commit3d9f6b5bc74d09a08f6a116b6b31d93d72971f6d (patch)
tree71a9e8971a0c2b3b15d40ccd5247d9edd60a89f9 /tests/unit/accordion
parentf262a531fa0978c3aaa0cc1c0a75cb1b8fec0155 (diff)
downloadjquery-ui-3d9f6b5bc74d09a08f6a116b6b31d93d72971f6d.tar.gz
jquery-ui-3d9f6b5bc74d09a08f6a116b6b31d93d72971f6d.zip
Accordion: Rewrote the animation code. Fixes #4178 - Accordion animation a bit jumpy in some browsers. Fixes #7371 - Accordion: Incorrect size when zoomed.
Diffstat (limited to 'tests/unit/accordion')
-rw-r--r--tests/unit/accordion/accordion_defaults.js2
-rw-r--r--tests/unit/accordion/accordion_defaults_deprecated.js1
-rw-r--r--tests/unit/accordion/accordion_test_helpers.js6
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/accordion/accordion_defaults.js b/tests/unit/accordion/accordion_defaults.js
index 9aa58e650..9ad85bbce 100644
--- a/tests/unit/accordion/accordion_defaults.js
+++ b/tests/unit/accordion/accordion_defaults.js
@@ -1,7 +1,7 @@
commonWidgetTests( "accordion", {
defaults: {
active: 0,
- animated: "slide",
+ animate: {},
collapsible: false,
disabled: false,
event: "click",
diff --git a/tests/unit/accordion/accordion_defaults_deprecated.js b/tests/unit/accordion/accordion_defaults_deprecated.js
index 3f45a1f10..99f5ac827 100644
--- a/tests/unit/accordion/accordion_defaults_deprecated.js
+++ b/tests/unit/accordion/accordion_defaults_deprecated.js
@@ -1,6 +1,7 @@
commonWidgetTests( "accordion", {
defaults: {
active: 0,
+ animate: null,
animated: "slide",
autoHeight: true,
clearStyle: false,
diff --git a/tests/unit/accordion/accordion_test_helpers.js b/tests/unit/accordion/accordion_test_helpers.js
index 66d60a469..7b316e983 100644
--- a/tests/unit/accordion/accordion_test_helpers.js
+++ b/tests/unit/accordion/accordion_test_helpers.js
@@ -18,13 +18,13 @@ function accordion_equalHeights( accordion, min, max ) {
}
function accordion_setupTeardown() {
- var animated = $.ui.accordion.prototype.options.animated;
+ var animate = $.ui.accordion.prototype.options.animate;
return {
setup: function() {
- $.ui.accordion.prototype.options.animated = false;
+ $.ui.accordion.prototype.options.animate = false;
},
teardown: function() {
- $.ui.accordion.prototype.options.animated = animated;
+ $.ui.accordion.prototype.options.animate = animate;
}
};
}