<script type="text/javascript" src="../../../external/jquery.mousewheel-3.0.2.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>\r
+ <script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>\r
<script type="text/javascript" src="../../../ui/jquery.ui.spinner.js"></script>\r
\r
<link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>\r
*/\r
\r
var spinner_defaults = {\r
- buttons: 'show',\r
- currency: false,\r
dir: 'ltr',\r
disabled: false,\r
- groupSeparator: '',\r
incremental: true,\r
max: null,\r
min: null,\r
mouseWheel: true,\r
- padding: 0,\r
+ numberformat: "n",\r
page: 5,\r
- precision: 0,\r
- radix: 10,\r
- radixPoint: '.',\r
spinnerClass: null,\r
step: null,\r
- value: 0,\r
- width: false\r
+ value: 0\r
};\r
\r
commonWidgetTests('spinner', { defaults: spinner_defaults });\r
equals(el.val(), 1000, "value option changed and set as current value");\r
});\r
\r
-test("width", function() {\r
- expect(2);\r
- \r
- el = $('#spin').spinner({ width: 1000 });\r
- equals(el.width(), 1000, "spinner width initialized");\r
-\r
- el.spinner('option', 'width', 500);\r
- equals(el.width(), 500, "spinner width changed");\r
-\r
-});\r
-\r
})(jQuery);\r
min: null,\r
mouseWheel: true,\r
numberformat: "n",\r
- padding: 0,\r
page: 5,\r
spinnerClass: null,\r
step: null,\r
},\r
\r
_create: function() { \r
- this.value(this._parse(this.element.val() || this.options.value));\r
+ this.value(this.element.val() || this.options.value);\r
this._draw();\r
this._mousewheel();\r
this._aria();\r