aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/slider/common.js')
-rw-r--r--tests/unit/slider/common.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/unit/slider/common.js b/tests/unit/slider/common.js
new file mode 100644
index 000000000..77004d159
--- /dev/null
+++ b/tests/unit/slider/common.js
@@ -0,0 +1,35 @@
+define( [
+ "lib/common",
+ "ui/slider"
+], function( common ) {
+
+common.testWidget( "slider", {
+ defaults: {
+ animate: false,
+ cancel: "input, textarea, button, select, option",
+ classes: {
+ "ui-slider": "ui-corner-all",
+ "ui-slider-handle": "ui-corner-all",
+ "ui-slider-range": "ui-corner-all ui-widget-header"
+ },
+ delay: 0,
+ disabled: false,
+ distance: 0,
+ max: 100,
+ min: 0,
+ orientation: "horizontal",
+ range: false,
+ step: 1,
+ value: 0,
+ values: null,
+
+ // callbacks
+ create: null,
+ change: null,
+ slide: null,
+ start: null,
+ stop: null
+ }
+});
+
+} );