jquery-ui/tests/unit/progressbar/progressbar_options.js

21 lines
370 B
JavaScript
Raw Normal View History

/*
* progressbar_options.js
*/
(function($) {
module("progressbar: options");
test("{ value : 0 }, default", function() {
2009-09-11 18:47:34 +00:00
$("#progressbar").progressbar();
same( 0, $("#progressbar").progressbar("value") );
});
test("{ value : 5 }", function() {
$("#progressbar").progressbar({
value: 5
});
same( 5, $("#progressbar").progressbar("value") );
});
})(jQuery);