aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/spinner/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/spinner/common.js')
-rw-r--r--tests/unit/spinner/common.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/unit/spinner/common.js b/tests/unit/spinner/common.js
new file mode 100644
index 000000000..2c40df76a
--- /dev/null
+++ b/tests/unit/spinner/common.js
@@ -0,0 +1,35 @@
+define( [
+ "lib/common",
+ "ui/spinner"
+], function( common ) {
+
+common.testWidget( "spinner", {
+ defaults: {
+ classes: {
+ "ui-spinner": "ui-corner-all",
+ "ui-spinner-up": "ui-corner-tr",
+ "ui-spinner-down": "ui-corner-br"
+ },
+ culture: null,
+ disabled: false,
+ icons: {
+ down: "ui-icon-triangle-1-s",
+ up: "ui-icon-triangle-1-n"
+ },
+ incremental: true,
+ max: null,
+ min: null,
+ numberFormat: null,
+ page: 10,
+ step: 1,
+
+ // callbacks
+ change: null,
+ create: null,
+ spin: null,
+ start: null,
+ stop: null
+ }
+});
+
+} );