progressbar: implemented missing tests

This commit is contained in:
Jörn Zaefferer 2009-09-11 18:47:34 +00:00
parent 40f75ee65c
commit fde0b18eea
2 changed files with 15 additions and 2 deletions

View File

@ -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);

View File

@ -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);