blob: 70ad7ababb810ee2db7022f89dec934e949b803e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* progressbar_options.js
*/
(function($) {
module("progressbar: options");
test("{ value : 0 }, default", function() {
$("#progressbar").progressbar();
same( 0, $("#progressbar").progressbar("value") );
});
test("{ value : 5 }", function() {
$("#progressbar").progressbar({
value: 5
});
same( 5, $("#progressbar").progressbar("value") );
});
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") );
});
test("{ max : 5, value : 10 }", function() {
$("#progressbar").progressbar({
max: 5,
value: 10
});
same( 5, $("#progressbar").progressbar("value") );
});
})(jQuery);
|