mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Progressbar: Fixed #3645: Use new CSS framework.
This commit is contained in:
parent
f0051caec4
commit
a9912abb2a
@ -8,11 +8,7 @@
|
|||||||
|
|
||||||
var defaults = {
|
var defaults = {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
height: 20,
|
value: 0
|
||||||
label: true,
|
|
||||||
labelAlign: 'left',
|
|
||||||
value: 0,
|
|
||||||
width: 300
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var el;
|
var el;
|
||||||
@ -47,19 +43,10 @@ test("defaults", function() {
|
|||||||
|
|
||||||
test("set defaults on init", function() {
|
test("set defaults on init", function() {
|
||||||
el = $("#progressbar").progressbar({
|
el = $("#progressbar").progressbar({
|
||||||
height: 30,
|
value: 50
|
||||||
label: false,
|
|
||||||
labelAlign: 'right',
|
|
||||||
value: 50,
|
|
||||||
width: 200
|
|
||||||
});
|
});
|
||||||
|
|
||||||
equals(el.progressbar("option", "height"), 30, "height");
|
|
||||||
equals(el.progressbar("option", "label"), false, "label");
|
|
||||||
equals(el.progressbar("option", "labelAlign"), "right", "labelAlign");
|
|
||||||
equals(el.progressbar("option", "value"), 50, "value");
|
equals(el.progressbar("option", "value"), 50, "value");
|
||||||
equals(el.progressbar("option", "width"), 200, "width");
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("accessibility", function() {
|
test("accessibility", function() {
|
||||||
|
@ -21,6 +21,7 @@ $.widget("ui.progressbar", {
|
|||||||
|
|
||||||
this.element
|
this.element
|
||||||
.addClass("ui-progressbar"
|
.addClass("ui-progressbar"
|
||||||
|
+ " ui-widget"
|
||||||
+ " ui-widget-content"
|
+ " ui-widget-content"
|
||||||
+ " ui-corner-all")
|
+ " ui-corner-all")
|
||||||
.attr({
|
.attr({
|
||||||
@ -40,6 +41,7 @@ $.widget("ui.progressbar", {
|
|||||||
|
|
||||||
this.element
|
this.element
|
||||||
.removeClass("ui-progressbar"
|
.removeClass("ui-progressbar"
|
||||||
|
+ " ui-widget"
|
||||||
+ " ui-widget-content"
|
+ " ui-widget-content"
|
||||||
+ " ui-corner-all")
|
+ " ui-corner-all")
|
||||||
.removeAttr("role")
|
.removeAttr("role")
|
||||||
|
Loading…
Reference in New Issue
Block a user