mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
progressbar: implemented missing tests
This commit is contained in:
parent
40f75ee65c
commit
fde0b18eea
@ -6,7 +6,12 @@
|
||||
module("progressbar: events");
|
||||
|
||||
test("change", function() {
|
||||
ok(false, "missing test - untested code is broken code.");
|
||||
expect(1);
|
||||
$("#progressbar").progressbar({
|
||||
change: function() {
|
||||
same( 5, $(this).progressbar("value") );
|
||||
}
|
||||
}).progressbar("value", 5);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
@ -6,7 +6,15 @@
|
||||
module("progressbar: options");
|
||||
|
||||
test("{ value : 0 }, default", function() {
|
||||
ok(false, "missing test - untested code is broken code.");
|
||||
$("#progressbar").progressbar();
|
||||
same( 0, $("#progressbar").progressbar("value") );
|
||||
});
|
||||
|
||||
test("{ value : 5 }", function() {
|
||||
$("#progressbar").progressbar({
|
||||
value: 5
|
||||
});
|
||||
same( 5, $("#progressbar").progressbar("value") );
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user