2009-02-02 14:36:08 +00:00
|
|
|
/*
|
|
|
|
* progressbar_options.js
|
|
|
|
*/
|
|
|
|
(function($) {
|
|
|
|
|
|
|
|
module("progressbar: options");
|
|
|
|
|
2009-02-04 04:39:31 +00:00
|
|
|
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") );
|
2009-02-02 14:36:08 +00:00
|
|
|
});
|
|
|
|
|
2010-07-29 09:38:24 +00:00
|
|
|
test("{ value : -5 }", function() {
|
|
|
|
$("#progressbar").progressbar({
|
|
|
|
value: -5
|
|
|
|
});
|
|
|
|
same( 0, $("#progressbar").progressbar("value") );
|
|
|
|
});
|
|
|
|
|
|
|
|
test("{ value : 105 }", function() {
|
|
|
|
$("#progressbar").progressbar({
|
|
|
|
value: 105
|
|
|
|
});
|
|
|
|
same( 100, $("#progressbar").progressbar("value") );
|
|
|
|
});
|
|
|
|
|
2009-02-02 14:36:08 +00:00
|
|
|
})(jQuery);
|