aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/progressbar_options.js
blob: 739c97bd9a1f83026e7d5890549850b1e005d8dd (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
43
44
45
46
47
48
49
generated by cgit v1.2.3 (git 2.39.1) at 2025-08-13 13:39:18 +0000
 


/span>progressbar({
		max: 5,
		value: 10
	});
	equal( $( "#progressbar" ).progressbar( "value" ), 5,
		"value constrained at max" );
});

test( "change max below value", function() {
	expect( 1 );
	$("#progressbar").progressbar({
		max: 10,
		value: 10
	}).progressbar( "option", "max", 5 );
	equal( $( "#progressbar" ).progressbar( "value" ), 5,
		"value constrained at max" );
});

}( jQuery ) );