aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar/options.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 08:58:48 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:29:08 -0400
commit12be35562af60ea25a6578005cf8b914345f26e3 (patch)
treed4fea77ee8f0c710eda45afe3a7858591ac22b6e /tests/unit/progressbar/options.js
parent5850a5c755afa064cf3cb4c4998f299333921d63 (diff)
downloadjquery-ui-12be35562af60ea25a6578005cf8b914345f26e3.tar.gz
jquery-ui-12be35562af60ea25a6578005cf8b914345f26e3.zip
Progressbar: Style updates
Ref #14246
Diffstat (limited to 'tests/unit/progressbar/options.js')
-rw-r--r--tests/unit/progressbar/options.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/unit/progressbar/options.js b/tests/unit/progressbar/options.js
index 533c15351..fb6faac9a 100644
--- a/tests/unit/progressbar/options.js
+++ b/tests/unit/progressbar/options.js
@@ -9,14 +9,14 @@ test( "{ value: 0 }, default", function() {
expect( 1 );
$( "#progressbar" ).progressbar();
equal( $( "#progressbar" ).progressbar( "value" ), 0 );
-});
+} );
// Ticket #7231 - valueDiv should be hidden when value is at 0%
test( "value: visibility of valueDiv", function() {
expect( 4 );
- var element = $( "#progressbar" ).progressbar({
+ var element = $( "#progressbar" ).progressbar( {
value: 0
- });
+ } );
ok( element.children( ".ui-progressbar-value" ).is( ":hidden" ),
"valueDiv hidden when value is initialized at 0" );
element.progressbar( "value", 1 );
@@ -28,52 +28,52 @@ test( "value: visibility of valueDiv", function() {
element.progressbar( "value", 0 );
ok( element.children( ".ui-progressbar-value" ).is( ":hidden" ),
"valueDiv hidden when value is set to 0" );
-});
+} );
test( "{ value: 5 }", function() {
expect( 1 );
- $( "#progressbar" ).progressbar({
+ $( "#progressbar" ).progressbar( {
value: 5
- });
+ } );
equal( $( "#progressbar" ).progressbar( "value" ), 5 );
-});
+} );
test( "{ value: -5 }", function() {
expect( 1 );
- $( "#progressbar" ).progressbar({
+ $( "#progressbar" ).progressbar( {
value: -5
- });
+ } );
equal( $( "#progressbar" ).progressbar( "value" ), 0,
"value constrained at min" );
-});
+} );
test( "{ value: 105 }", function() {
expect( 1 );
- $( "#progressbar" ).progressbar({
+ $( "#progressbar" ).progressbar( {
value: 105
- });
+ } );
equal( $( "#progressbar" ).progressbar( "value" ), 100,
"value constrained at max" );
-});
+} );
test( "{ value: 10, max: 5 }", function() {
expect( 1 );
- $("#progressbar").progressbar({
+ $( "#progressbar" ).progressbar( {
max: 5,
value: 10
- });
+ } );
equal( $( "#progressbar" ).progressbar( "value" ), 5,
"value constrained at max" );
-});
+} );
test( "change max below value", function() {
expect( 1 );
- $("#progressbar").progressbar({
+ $( "#progressbar" ).progressbar( {
max: 10,
value: 10
- }).progressbar( "option", "max", 5 );
+ } ).progressbar( "option", "max", 5 );
equal( $( "#progressbar" ).progressbar( "value" ), 5,
"value constrained at max" );
-});
+} );
} );